mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge branch 'master' into testing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user