mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Don't need second param
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user