diff options
author | Noah Hendrix <noahhendrix@gmail.com> | 2012-02-24 13:55:24 -0600 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-25 21:54:38 +0530 |
commit | e1f799a42f569990c3d9512bafe85898454c10a6 (patch) | |
tree | 68de2f30752545e4701bc63de9f71a6c1de9f385 /activerecord | |
parent | 0a1357b6fb8c76736d28b6b4a3584d167c02f0d7 (diff) | |
download | rails-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')
-rw-r--r-- | activerecord/lib/active_record/aggregations.rb | 2 |
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 |