Module: Grocer::ErrorCallback::Callbacks::ClassMethods
- Defined in:
- lib/grocer/error_callback/callbacks.rb
Constant Summary collapse
- @@callbacks =
{ connection_error: [] }
Instance Method Summary collapse
Instance Method Details
#run_callbacks(callback, *args) ⇒ Object
13 14 15 16 17 |
# File 'lib/grocer/error_callback/callbacks.rb', line 13 def run_callbacks(callback, *args) @@callbacks[callback].each do |callback| callback[*args] end end |