aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-11 13:35:58 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-11 13:35:58 -0700
commitcecccf11562f173eb504ac8b7600397d1d3deeb7 (patch)
treeb67372218913d747a0d3e11c869e92023740b784 /activerecord/lib/active_record
parentbef5b826e3cc111701ab09000fd4e8e1842a8590 (diff)
downloadrails-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/active_record')
-rw-r--r--activerecord/lib/active_record/relation/calculations.rb2
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