Module: ExceptionsBegone::Catcher::InstanceMethods
- Defined in:
- lib/exceptions_begone/exceptions_support/catcher.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(target) ⇒ Object
12 13 14 15 |
# File 'lib/exceptions_begone/exceptions_support/catcher.rb', line 12 def self.included(target) target.send(:alias_method, :rescue_action_in_public_without_catcher, :rescue_action_in_public) target.send(:alias_method, :rescue_action_in_public, :rescue_action_in_public_with_catcher) end |
Instance Method Details
#rescue_action_in_public_with_catcher(exception) ⇒ Object
17 18 19 20 |
# File 'lib/exceptions_begone/exceptions_support/catcher.rb', line 17 def rescue_action_in_public_with_catcher(exception) Sender.send_exception(exception, self, request) rescue_action_in_public_without_catcher(exception) end |