Module: MongoMapper::Plugins::Protected::InstanceMethods

Defined in:
lib/novelys_mongo_mapper/plugins/protected.rb

Instance Method Summary collapse

Instance Method Details

#protected_attributesObject



29
30
31
# File 'lib/novelys_mongo_mapper/plugins/protected.rb', line 29

def protected_attributes
  self.class.protected_attributes
end

#update_attributes(attrs = {}) ⇒ Object



21
22
23
# File 'lib/novelys_mongo_mapper/plugins/protected.rb', line 21

def update_attributes(attrs={})
  super(filter_protected_attrs(attrs))
end

#update_attributes!(attrs = {}) ⇒ Object



25
26
27
# File 'lib/novelys_mongo_mapper/plugins/protected.rb', line 25

def update_attributes!(attrs={})
  super(filter_protected_attrs(attrs))
end