Method: Mongoid::Interceptable#run_before_callbacks
- Defined in:
- lib/mongoid/interceptable.rb
#run_before_callbacks(*kinds) ⇒ Object
Note:
ActiveSupport does not allow this type of behavior by default, so Mongoid has to get around it and implement itself.
Run only the before callbacks for the specific event.
107 108 109 110 111 |
# File 'lib/mongoid/interceptable.rb', line 107 def run_before_callbacks(*kinds) kinds.each do |kind| run_targeted_callbacks(:before, kind) end end |