Module: ActiveResponse::Controller::DefaultResponses
- Defined in:
- lib/active_response/controller/default_responses.rb
Instance Method Summary collapse
- #respond_with_collection(opts) ⇒ Object
- #respond_with_destroyed(opts) ⇒ Object
- #respond_with_form(opts) ⇒ Object
- #respond_with_invalid_resource(opts) ⇒ Object
- #respond_with_new_resource(opts) ⇒ Object
- #respond_with_redirect(opts) ⇒ Object
- #respond_with_resource(opts) ⇒ Object
- #respond_with_updated_resource(opts) ⇒ Object
Instance Method Details
#respond_with_collection(opts) ⇒ Object
6 7 8 |
# File 'lib/active_response/controller/default_responses.rb', line 6 def respond_with_collection(opts) active_responder.collection(**opts) end |
#respond_with_destroyed(opts) ⇒ Object
10 11 12 |
# File 'lib/active_response/controller/default_responses.rb', line 10 def respond_with_destroyed(opts) active_responder.destroyed(**opts) end |
#respond_with_form(opts) ⇒ Object
14 15 16 |
# File 'lib/active_response/controller/default_responses.rb', line 14 def respond_with_form(opts) active_responder.form(**opts) end |
#respond_with_invalid_resource(opts) ⇒ Object
18 19 20 |
# File 'lib/active_response/controller/default_responses.rb', line 18 def respond_with_invalid_resource(opts) active_responder.invalid_resource(**opts) end |
#respond_with_new_resource(opts) ⇒ Object
22 23 24 |
# File 'lib/active_response/controller/default_responses.rb', line 22 def respond_with_new_resource(opts) active_responder.new_resource(**opts) end |
#respond_with_redirect(opts) ⇒ Object
26 27 28 |
# File 'lib/active_response/controller/default_responses.rb', line 26 def respond_with_redirect(opts) active_responder.redirect(**opts) end |
#respond_with_resource(opts) ⇒ Object
30 31 32 |
# File 'lib/active_response/controller/default_responses.rb', line 30 def respond_with_resource(opts) active_responder.resource(**opts) end |
#respond_with_updated_resource(opts) ⇒ Object
34 35 36 |
# File 'lib/active_response/controller/default_responses.rb', line 34 def respond_with_updated_resource(opts) active_responder.updated_resource(**opts) end |