Method: Mongoid::Threaded#execute_callbacks=
- Defined in:
- lib/mongoid/threaded.rb
#execute_callbacks=(flag) ⇒ Object
Indicates whether document callbacks should be invoked by default for the current thread. Individual documents may further override the callback behavior, but this will be used for the default behavior.
480 481 482 |
# File 'lib/mongoid/threaded.rb', line 480 def execute_callbacks=(flag) set(EXECUTE_CALLBACKS, flag) end |