Class: Exceptron::ExceptionsController

Inherits:
ActionController::Base
  • Object
show all
Includes:
Helpers
Defined in:
lib/exceptron/exceptions_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.inherited(subclass) ⇒ Object



14
15
16
17
# File 'lib/exceptron/exceptions_controller.rb', line 14

def self.inherited(subclass)
  super
  Exceptron.controller = subclass
end

Instance Method Details

#internal_server_errorObject Also known as: not_found, unprocessable_entity



8
9
10
# File 'lib/exceptron/exceptions_controller.rb', line 8

def internal_server_error
  respond_with exception_presenter
end