Module: MongoMapper::Plugins::Safe::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#save_to_collection(options = {}) ⇒ Object



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

def save_to_collection(options={})
  options[:safe] = self.class.safe? unless options.key?(:safe)
  super
end