aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/customer.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-05-21 17:32:37 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-05-21 17:32:37 +0000
commit59c8c63ecd751136c5ed6d2e3c04a54af2025eb0 (patch)
tree050f58c08dff7884b70bb6a7d19fec925e98b632 /activerecord/test/fixtures/customer.rb
parentfa207c24468b3b7c32b3c6d7128ec13a7b7d4a16 (diff)
downloadrails-59c8c63ecd751136c5ed6d2e3c04a54af2025eb0.tar.gz
rails-59c8c63ecd751136c5ed6d2e3c04a54af2025eb0.tar.bz2
rails-59c8c63ecd751136c5ed6d2e3c04a54af2025eb0.zip
Added :allow_nil option for aggregations (closes #5091) [ian.w.white@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 e23fd03ade..ccbe035931 100644
--- a/activerecord/test/fixtures/customer.rb
+++ b/activerecord/test/fixtures/customer.rb
@@ -1,7 +1,7 @@
class Customer < ActiveRecord::Base
- composed_of :address, :mapping => [ %w(address_street street), %w(address_city city), %w(address_country country) ]
+ 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 :gps_location
+ composed_of :gps_location, :allow_nil => true
end
class Address