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
21 22 23 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 21 def assign(attrs={}) super(filter_protected_attrs(attrs)) end |
#protected_attributes ⇒ Object
33 34 35 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 33 def protected_attributes self.class.protected_attributes end |
#update_attributes(attrs = {}) ⇒ Object
25 26 27 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 25 def update_attributes(attrs={}) super(filter_protected_attrs(attrs)) end |
#update_attributes!(attrs = {}) ⇒ Object
29 30 31 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 29 def update_attributes!(attrs={}) super(filter_protected_attrs(attrs)) end |