Class: Exceptron::LocalExceptionsController

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.inherited(subclass) ⇒ Object



12
13
14
15
# File 'lib/exceptron/local_exceptions_controller.rb', line 12

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

Instance Method Details

#internal_server_errorObject



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

def internal_server_error
  render :action => Exceptron.rescue_templates[exception_presenter.original_exception.class.name]
end