aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/aggregations.rb
diff options
context:
space:
mode:
authorNoah Hendrix <noahhendrix@gmail.com>2012-02-24 13:55:24 -0600
committerNoah Hendrix <noahhendrix@gmail.com>2012-02-24 13:55:24 -0600
commit0519567e3d3ad77e88866e8fb79ff2b24424d724 (patch)
tree0c1fd7fc29b4c0a04807791021663a0047389a85 /activerecord/lib/active_record/aggregations.rb
parent62b1f1a62d3f534a7841794d9fd434964143f76a (diff)
downloadrails-0519567e3d3ad77e88866e8fb79ff2b24424d724.tar.gz
rails-0519567e3d3ad77e88866e8fb79ff2b24424d724.tar.bz2
rails-0519567e3d3ad77e88866e8fb79ff2b24424d724.zip
Fixed typo in composed_of example with Money#<=>, was comparing amount itself instead of other_money.amount
Diffstat (limited to 'activerecord/lib/active_record/aggregations.rb')
-rw-r--r--activerecord/lib/active_record/aggregations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/aggregations.rb b/activerecord/lib/active_record/aggregations.rb
index 5a8addc4e4..c39284539c 100644
--- a/activerecord/lib/active_record/aggregations.rb
+++ b/activerecord/lib/active_record/aggregations.rb
@@ -46,7 +46,7 @@ module ActiveRecord
#
# def <=>(other_money)
# if currency == other_money.currency
- # amount <=> amount
+ # amount <=> other_money.amount
# else
# amount <=> other_money.exchange_to(currency).amount
# end