class ActionController::Responder
def default_render
controller.
If a response block was given, use it, otherwise call render on
def default_render if @default_response @default_response.call(options) elsif !get? && has_errors? controller.render({ status: error_status }.merge!(options)) else controller.render(options) end end