Module: ResponderController
- Defined in:
- lib/responder_controller.rb,
lib/responder_controller/actions.rb,
lib/responder_controller/class_methods.rb,
lib/responder_controller/instance_methods.rb
Defined Under Namespace
Modules: Actions, ClassMethods, InstanceMethods Classes: BadScope, ForbiddenScope, ScopeError
Class Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/responder_controller.rb', line 26 def self.included(mod) mod.extend ClassMethods mod.send :include, InstanceMethods mod.send :include, Actions # Declare http statuses to return for uncaught scope errors. ActionDispatch::ShowExceptions.rescue_responses.update({ BadScope.name => :bad_request, ForbiddenScope.name => :forbidden }) if defined? ActionDispatch end |