Module: ProjectlockerErrata::Rails::ActionControllerCatcher

Defined in:
lib/projectlocker_errata/rails/action_controller_catcher.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Sets up an alias chain to catch exceptions when Rails does



6
7
8
9
# File 'lib/projectlocker_errata/rails/action_controller_catcher.rb', line 6

def self.included(base) #:nodoc:
  base.send(:alias_method, :rescue_action_in_public_without_projectlocker_errata, :rescue_action_in_public)
  base.send(:alias_method, :rescue_action_in_public, :rescue_action_in_public_with_projectlocker_errata)
end