Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…t itself instead of other_money.amount
  • Loading branch information...
commit e1f799a42f569990c3d9512bafe85898454c10a6 1 parent 0a1357b
@noahhendrix noahhendrix authored vijaydev committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/aggregations.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.