Merge branch 'master' into testing

This commit is contained in:
Jeremy Kemper
2008-11-07 21:54:29 -05:00

View File

@@ -286,7 +286,7 @@ module ActiveRecord
case operation
when 'count' then value.to_i
when 'sum' then type_cast_using_column(value || '0', column)
when 'avg' then value && value.to_d
when 'avg' then value && value.to_f.to_d
else type_cast_using_column(value, column)
end
end