Module: MongoMapper::Plugins::Protected

Extended by:
ActiveSupport::Concern
Included in:
Document, EmbeddedDocument
Defined in:
lib/mongo_mapper/plugins/protected.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#attributes=(attrs = {}) ⇒ Object



26
27
28
# File 'lib/mongo_mapper/plugins/protected.rb', line 26

def 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

#update_attributes!(attrs = {}) ⇒ Object



34
35
36
# File 'lib/mongo_mapper/plugins/protected.rb', line 34

def update_attributes!(attrs={})
  super(filter_protected_attrs(attrs))
end