Module: Coalmine::Rails::ActionController

Defined in:
lib/coalmine/rails/action_controller.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Setup some rails magic so that when an exception is raised, it is first sent to our handler.



8
9
10
11
12
# File 'lib/coalmine/rails/action_controller.rb', line 8

def self.included(base)
  base.send(:before_filter, :clear_coalmine_custom_variables)
  base.send(:alias_method, :rescue_action_in_public_without_coalmine, :rescue_action_in_public)
  base.send(:alias_method, :rescue_action_in_public, :rescue_action_in_public_with_coalmine)
end