Module: MongoMapper::Plugins::EmbeddedCallbacks::ClassMethods

Defined in:
lib/mongo_mapper/plugins/embedded_callbacks.rb

Instance Method Summary collapse

Instance Method Details

#embedded_callbacks_offObject



21
22
23
# File 'lib/mongo_mapper/plugins/embedded_callbacks.rb', line 21

def embedded_callbacks_off
  @embedded_callbacks_status = false
end

#embedded_callbacks_off?Boolean

Returns:



29
30
31
# File 'lib/mongo_mapper/plugins/embedded_callbacks.rb', line 29

def embedded_callbacks_off?
  !embedded_callbacks_on?
end

#embedded_callbacks_onObject



17
18
19
# File 'lib/mongo_mapper/plugins/embedded_callbacks.rb', line 17

def embedded_callbacks_on
  @embedded_callbacks_status = true
end

#embedded_callbacks_on?Boolean

Returns:



25
26
27
# File 'lib/mongo_mapper/plugins/embedded_callbacks.rb', line 25

def embedded_callbacks_on?
  @embedded_callbacks_status == true
end