Permalink
Browse files

Don't need second param

  • Loading branch information...
1 parent efcc95a commit 035b4244bae8620515d3757fdc3be42ac77dddec @jonleighton jonleighton committed Nov 30, 2011
@@ -94,15 +94,15 @@ def _read_attribute(attr_name)
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 @@ def set_serialized_attributes
end
end
- def type_cast_attribute(column, value)
+ def type_cast_attribute(column)
coder = self.class.serialized_attributes[column.name]
if column.text? && coder

0 comments on commit 035b424

Please sign in to comment.