Module: ExceptionsBegone::Catcher
- Defined in:
- lib/exceptions_begone/exceptions_support/catcher.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.catch_exceptions(&block) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/exceptions_begone/exceptions_support/catcher.rb', line 3 def catch_exceptions(&block) ActionController::Base.__send__(:include, InstanceMethods) parameters = OpenStruct.new block.call(parameters) if block_given? ConnectionConfigurator.global_parameters = parameters end |