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 0a1357b commit e1f799a42f569990c3d9512bafe85898454c10a6 @noahhendrix noahhendrix committed with vijaydev 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 e1f799a

Please sign in to comment.