Module: Apish::Controller::Rescue::ClassMethods

Defined in:
lib/apish/controller/rescue.rb

Instance Method Summary collapse

Instance Method Details

#rescue_from_with_details(exception_class, status_code_or_symbol) ⇒ Object



15
16
17
# File 'lib/apish/controller/rescue.rb', line 15

def rescue_from_with_details( exception_class, status_code_or_symbol )
  respond_with_detail_exceptions[exception_class] = status_code_or_symbol
end

#respond_with_detail_exceptionsObject



11
12
13
# File 'lib/apish/controller/rescue.rb', line 11

def respond_with_detail_exceptions
  @@respond_with_detail_exceptions ||= {}
end