def directly_set_attributes(hash, mass_assign = false)
return if hash.nil?
multi_parameter_attributes = []
hash.reject do |key, value|
if key.to_s.include?("(")
multi_parameter_attributes << [ key, value ]
false
elsif self.respond_to?("#{key}=")
self.send("#{key}=", value)
elsif mass_assign || mass_assign_any_attribute
couchrest_attribute_will_change!(key) if use_dirty? && self[key] != value
self[key] = value
end
end
assign_multiparameter_attributes(multi_parameter_attributes, hash) unless multi_parameter_attributes.empty?
end