Module: RespondWith::Helpers
- Defined in:
- lib/respond_with/helpers.rb
Instance Method Summary collapse
Instance Method Details
#respond_with(obj, opts = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/respond_with/helpers.rb', line 3 def respond_with(obj, opts={}) RespondWith::Response.new({ :object => obj, :params => params, :request => request, :options => opts, :app => self }).render end |