aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/aggregations.rb
diff options
context:
space:
mode:
authorNoah Hendrix <noahhendrix@gmail.com>2012-02-24 13:55:24 -0600
committerVijay Dev <vijaydev.cse@gmail.com>2012-02-25 21:54:38 +0530
commite1f799a42f569990c3d9512bafe85898454c10a6 (patch)
tree68de2f30752545e4701bc63de9f71a6c1de9f385 /activerecord/lib/active_record/aggregations.rb
parent0a1357b6fb8c76736d28b6b4a3584d167c02f0d7 (diff)
downloadrails-e1f799a42f569990c3d9512bafe85898454c10a6.tar.gz
rails-e1f799a42f569990c3d9512bafe85898454c10a6.tar.bz2
rails-e1f799a42f569990c3d9512bafe85898454c10a6.zip
Fixed typo in composed_of example with Money#<=>, was comparing amount itself instead of other_money.amount
Diffstat (limited to 'activerecord/lib/active_record/aggregations.rb')
-rw-r--r--activerecord/lib/active_record/aggregations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/aggregations.rb b/activerecord/lib/active_record/aggregations.rb
index 5a8addc4e4..c39284539c 100644
--- a/activerecord/lib/active_record/aggregations.rb
+++ b/activerecord/lib/active_record/aggregations.rb
@@ -46,7 +46,7 @@ module ActiveRecord
#
# def <=>(other_money)
# if currency == other_money.currency
- # amount <=> amount
+ # amount <=> other_money.amount
# else
# amount <=> other_money.exchange_to(currency).amount
# end