Module: Errplane::Rails::Middleware::HijackRescueActionEverywhere
- Defined in:
- lib/errplane/rails/middleware/hijack_rescue_action_everywhere.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 |
# File 'lib/errplane/rails/middleware/hijack_rescue_action_everywhere.rb', line 5 def self.included(base) ::Rails.logger.info("INSTALLING MIDDLEWARE 2") base.send(:alias_method_chain, :rescue_action_in_public, :errplane) base.send(:alias_method_chain, :rescue_action_locally, :errplane) end |