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 c4f92646ea53152987dacf9732e3306657f038de 1 parent 67b6847
@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
@@ -48,7 +48,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.