module MongoModel::AttributeMethods::Protected

Public Instance Methods

assign_attributes(attrs, options={}) click to toggle source
Calls superclass method
# File lib/mongomodel/concerns/attribute_methods/protected.rb, line 19
def assign_attributes(attrs, options={})
  if options[:without_protection]
    super
  else
    super(sanitize_for_mass_assignment(attrs, options[:as] || :default))
  end
end