Module: MongoMapper::Plugins::Protected::InstanceMethods
- Defined in:
- lib/mongo_mapper/plugins/protected.rb
Instance Method Summary collapse
- #assign(attrs = {}) ⇒ Object
- #protected_attributes ⇒ Object
- #update_attributes(attrs = {}) ⇒ Object
- #update_attributes!(attrs = {}) ⇒ Object
Instance Method Details
#assign(attrs = {}) ⇒ Object
29 30 31 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 29 def assign(attrs={}) super(filter_protected_attrs(attrs)) end |
#protected_attributes ⇒ Object
41 42 43 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 41 def protected_attributes self.class.protected_attributes end |
#update_attributes(attrs = {}) ⇒ Object
33 34 35 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 33 def update_attributes(attrs={}) super(filter_protected_attrs(attrs)) end |
#update_attributes!(attrs = {}) ⇒ Object
37 38 39 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 37 def update_attributes!(attrs={}) super(filter_protected_attrs(attrs)) end |