Don't need second param

This commit is contained in:
Jon Leighton
2011-11-30 16:12:51 +00:00
parent efcc95acb7
commit 035b4244ba
2 changed files with 4 additions and 4 deletions

View File

@@ -94,15 +94,15 @@ module ActiveRecord
value = @attributes[attr_name]
unless value.nil?
if column = column_for_attribute(attr_name)
type_cast_attribute(column, value)
type_cast_attribute(column)
else
value
end
end
end
def type_cast_attribute(column, value) #:nodoc:
column.type_cast(value)
def type_cast_attribute(column) #:nodoc:
column.type_cast(@attributes[column.name])
end
private

View File

@@ -64,7 +64,7 @@ module ActiveRecord
end
end
def type_cast_attribute(column, value)
def type_cast_attribute(column)
coder = self.class.serialized_attributes[column.name]
if column.text? && coder