Permalink
Browse files

Fixed typo in composed_of example with Money#<=>, was comparing amoun…

…t itself instead of other_money.amount
  • Loading branch information...
1 parent 62b1f1a commit 0519567e3d3ad77e88866e8fb79ff2b24424d724 @noahhendrix noahhendrix committed Feb 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/aggregations.rb
@@ -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

0 comments on commit 0519567

Please sign in to comment.