aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/query_cache.rb
diff options
context:
space:
mode:
authorKen Collins <ken@metaskills.net>2008-11-07 20:39:06 -0600
committerJoshua Peek <josh@joshpeek.com>2008-11-07 20:39:06 -0600
commita7f920f674d234f281d2491ebe6d74710a79e663 (patch)
treecd0935e92534709c084ce9033d07ca98b5905d1a /activerecord/lib/active_record/query_cache.rb
parent1767c4b2da21379862a9ab1a4316d8da6b820a2a (diff)
downloadrails-a7f920f674d234f281d2491ebe6d74710a79e663.tar.gz
rails-a7f920f674d234f281d2491ebe6d74710a79e663.tar.bz2
rails-a7f920f674d234f281d2491ebe6d74710a79e663.zip
If average value from DB is 0, make sure to convert it to a 0.0 float before calling #to_d on it [#1346 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activerecord/lib/active_record/query_cache.rb')
0 files changed, 0 insertions, 0 deletions