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
- #accessible_attributes(*args) ⇒ Object
- #accessible_attributes? ⇒ Boolean
- #attributes=(attrs = {}) ⇒ Object
- #update_attributes(attrs = {}) ⇒ Object
- #update_attributes!(attrs = {}) ⇒ Object
Instance Method Details
#accessible_attributes(*args) ⇒ Object
37 38 39 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 37 def accessible_attributes(*args) self.class.accessible_attributes(*args) end |
#accessible_attributes? ⇒ Boolean
41 42 43 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 41 def accessible_attributes? self.class.accessible_attributes? end |
#attributes=(attrs = {}) ⇒ Object
25 26 27 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 25 def attributes=(attrs={}) super(filter_inaccessible_attrs(attrs)) end |
#update_attributes(attrs = {}) ⇒ Object
29 30 31 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 29 def update_attributes(attrs={}) super(filter_inaccessible_attrs(attrs)) end |
#update_attributes!(attrs = {}) ⇒ Object
33 34 35 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 33 def update_attributes!(attrs={}) super(filter_inaccessible_attrs(attrs)) end |