Module: Radar::Integration::Rails2::ActionControllerRescue

Defined in:
lib/radar/integration/rails2/action_controller_rescue.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
# File 'lib/radar/integration/rails2/action_controller_rescue.rb', line 5

def self.included(base)
  # Unfortunate alias method chain... solution: upgrade to rails 3 ;)
  base.send(:alias_method, :rescue_action_without_radar, :rescue_action)
  base.send(:alias_method, :rescue_action, :rescue_action_with_radar)
  base.send(:protected, :rescue_action)
end