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