Module: Commutator::Model::Hooks
- Extended by:
- ActiveSupport::Concern
- Included in:
- Commutator::Model
- Defined in:
- lib/commutator/model/hooks.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#run_before_hooks(operation, options) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/commutator/model/hooks.rb', line 6 def run_before_hooks(operation, ) self.class.before_hooks[operation].each do |method_name| send(method_name, ) end end |