Method: Commutator::Model::Hooks::ClassMethods#run_before_hooks
- Defined in:
- lib/commutator/model/hooks.rb
#run_before_hooks(operation, options) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/commutator/model/hooks.rb', line 31 def run_before_hooks(operation, ) before_hooks[operation].each do |method_name| send(method_name, ) end end |