aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/customer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/fixtures/customer.rb')
-rw-r--r--activerecord/test/fixtures/customer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/fixtures/customer.rb b/activerecord/test/fixtures/customer.rb
index ccbe035931..3d8d644f12 100644
--- a/activerecord/test/fixtures/customer.rb
+++ b/activerecord/test/fixtures/customer.rb
@@ -1,6 +1,6 @@
class Customer < ActiveRecord::Base
composed_of :address, :mapping => [ %w(address_street street), %w(address_city city), %w(address_country country) ], :allow_nil => true
- composed_of :balance, :class_name => "Money", :mapping => %w(balance amount)
+ composed_of(:balance, :class_name => "Money", :mapping => %w(balance amount)) { |balance| balance.to_money }
composed_of :gps_location, :allow_nil => true
end
@@ -52,4 +52,4 @@ class GpsLocation
def ==(other)
self.latitude == other.latitude && self.longitude == other.longitude
end
-end \ No newline at end of file
+end