Skip to content

Commit

Permalink
Fixed typo in composed_of example with Money#<=>, was comparing amoun…
Browse files Browse the repository at this point in the history
…t itself instead of other_money.amount
  • Loading branch information
noahhendrix authored and vijaydev committed Feb 25, 2012
1 parent e6fca55 commit b5418e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/aggregations.rb
Expand Up @@ -46,7 +46,7 @@ def clear_aggregation_cache #:nodoc:
#
# def <=>(other_money)
# if currency == other_money.currency
# amount <=> amount
# amount <=> other_money.amount
# else
# amount <=> other_money.exchange_to(currency).amount
# end
Expand Down

0 comments on commit b5418e7

Please sign in to comment.