diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-11 13:35:58 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-11 13:35:58 -0700 |
commit | cecccf11562f173eb504ac8b7600397d1d3deeb7 (patch) | |
tree | b67372218913d747a0d3e11c869e92023740b784 /activerecord/lib | |
parent | bef5b826e3cc111701ab09000fd4e8e1842a8590 (diff) | |
download | rails-cecccf11562f173eb504ac8b7600397d1d3deeb7.tar.gz rails-cecccf11562f173eb504ac8b7600397d1d3deeb7.tar.bz2 rails-cecccf11562f173eb504ac8b7600397d1d3deeb7.zip |
we should always cast the value based on the column
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/calculations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/calculations.rb b/activerecord/lib/active_record/relation/calculations.rb index 3519880335..6bf698fe97 100644 --- a/activerecord/lib/active_record/relation/calculations.rb +++ b/activerecord/lib/active_record/relation/calculations.rb @@ -277,7 +277,7 @@ module ActiveRecord else type_cast_using_column(value, column) end else - value + type_cast_using_column(value, column) end end |