Module: MongoMapper::Plugins::Accessible
- Extended by:
- ActiveSupport::Concern
- Included in:
- Document, EmbeddedDocument
- Defined in:
- lib/mongo_mapper/plugins/accessible.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #attributes=(attrs = {}) ⇒ Object
- #update_attributes(attrs = {}) ⇒ Object
- #update_attributes!(attrs = {}) ⇒ Object
Instance Method Details
#attributes=(attrs = {}) ⇒ Object
17 18 19 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 17 def attributes=(attrs={}) super(filter_inaccessible_attrs(attrs)) end |
#update_attributes(attrs = {}) ⇒ Object
21 22 23 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 21 def update_attributes(attrs={}) super(filter_inaccessible_attrs(attrs)) end |
#update_attributes!(attrs = {}) ⇒ Object
25 26 27 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 25 def update_attributes!(attrs={}) super(filter_inaccessible_attrs(attrs)) end |