Module: MongoMapper::Plugins::Accessible::InstanceMethods
- Defined in:
- lib/mongo_mapper/plugins/accessible.rb
Instance Method Summary collapse
- #accessible_attributes ⇒ Object
- #assign(attrs = {}) ⇒ Object
- #update_attributes(attrs = {}) ⇒ Object
- #update_attributes!(attrs = {}) ⇒ Object
Instance Method Details
#accessible_attributes ⇒ Object
32 33 34 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 32 def accessible_attributes self.class.accessible_attributes end |
#assign(attrs = {}) ⇒ Object
20 21 22 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 20 def assign(attrs={}) super(filter_inaccessible_attrs(attrs)) end |
#update_attributes(attrs = {}) ⇒ Object
24 25 26 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 24 def update_attributes(attrs={}) super(filter_inaccessible_attrs(attrs)) end |
#update_attributes!(attrs = {}) ⇒ Object
28 29 30 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 28 def update_attributes!(attrs={}) super(filter_inaccessible_attrs(attrs)) end |