attributes= raises exception with rails 3.2 #45

Merged
merged 1 commit into from Mar 10, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −6
Split
@@ -43,18 +43,14 @@ def read_enumerated_attribute(name)
val
end
- def attributes=(attrs, guard_protected_attributes=true)
+ def attributes=(attrs)
return if attrs.nil?
#check the attributes then turn them over
attrs.each do |k, v|
attrs[k] = v.to_s if self.class.has_enumerated_attribute?(k)
end
- if guard_protected_attributes
- super(attrs) #prevents deprecation warnings for rails 3.1.1
- else
- super(attrs, guard_protected_attributes)
- end
+ super
end
def attributes