Module: OpenException::ActionControllerExtensions

Defined in:
lib/open_exception/rails.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/open_exception/rails.rb', line 3

def self.included(base)
  base.send(:alias_method,
            :rescue_action_locally_without_open_exception,
            :rescue_action_locally)
  base.send(:alias_method,
            :rescue_action_locally,
            :rescue_action_locally_with_open_exception)
end

Instance Method Details

#rescue_action_locally_with_open_exception(exception) ⇒ Object



12
13
14
15
# File 'lib/open_exception/rails.rb', line 12

def rescue_action_locally_with_open_exception(exception)
  OpenException.open(exception)
  rescue_action_locally_without_open_exception(exception)
end