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.

Parameters:

  • flag (true | false)

    Whether or not document callbacks should be executed by default.



480
481
482
# File 'lib/mongoid/threaded.rb', line 480

def execute_callbacks=(flag)
  set(EXECUTE_CALLBACKS, flag)
end