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
31 32 33 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 31 def assign(attrs={}) super(filter_protected_attrs(attrs)) end |
#protected_attributes ⇒ Object
43 44 45 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 43 def protected_attributes self.class.protected_attributes end |
#update_attributes(attrs = {}) ⇒ Object
35 36 37 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 35 def update_attributes(attrs={}) super(filter_protected_attrs(attrs)) end |
#update_attributes!(attrs = {}) ⇒ Object
39 40 41 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 39 def update_attributes!(attrs={}) super(filter_protected_attrs(attrs)) end |