module ActiveResponse::Controller::DefaultResponses

Public Instance Methods

respond_with_collection(opts) click to toggle source
# File lib/active_response/controller/default_responses.rb, line 6
def respond_with_collection(opts)
  active_responder.collection(**opts)
end
respond_with_destroyed(opts) click to toggle source
# File lib/active_response/controller/default_responses.rb, line 10
def respond_with_destroyed(opts)
  active_responder.destroyed(**opts)
end
respond_with_form(opts) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# File lib/active_response/controller/default_responses.rb, line 26
def respond_with_redirect(opts)
  active_responder.redirect(**opts)
end
respond_with_resource(opts) click to toggle source
# 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) click to toggle source
# File lib/active_response/controller/default_responses.rb, line 34
def respond_with_updated_resource(opts)
  active_responder.updated_resource(**opts)
end