Method: Datamappify::Repository::QueryMethod::Callbacks#run_callbacks
- Defined in:
- lib/datamappify/repository/query_method/callbacks.rb
#run_callbacks(entity, *types) { ... } ⇒ void
This method returns an undefined value.
27 28 29 30 31 32 |
# File 'lib/datamappify/repository/query_method/callbacks.rb', line 27 def run_callbacks(entity, *types, &block) run_hooks(types, :before, entity) && (yield_value = block.call) && run_hooks(types.reverse, :after, entity) && yield_value end |