diff options
author | Jamis Buck <jamis@37signals.com> | 2005-08-23 11:05:04 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-08-23 11:05:04 +0000 |
commit | dfe1aeb776ed9a7da8b431c7933c858d155a13c7 (patch) | |
tree | 11593565c25ad674b9fbaf7d9d17e313f0c4198c /activerecord/test/fixtures/order.rb | |
parent | 211617191ed9e6bc9da1cee1bdd134c9b8c3cdfd (diff) | |
download | rails-dfe1aeb776ed9a7da8b431c7933c858d155a13c7.tar.gz rails-dfe1aeb776ed9a7da8b431c7933c858d155a13c7.tar.bz2 rails-dfe1aeb776ed9a7da8b431c7933c858d155a13c7.zip |
Saving a record with two unsaved belongs_to associations pointing to the same object fails #2023 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/order.rb')
-rw-r--r-- | activerecord/test/fixtures/order.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/order.rb b/activerecord/test/fixtures/order.rb new file mode 100644 index 0000000000..ba114f22c6 --- /dev/null +++ b/activerecord/test/fixtures/order.rb @@ -0,0 +1,4 @@ +class Order < ActiveRecord::Base + belongs_to :billing, :class_name => 'Customer', :foreign_key => 'billing_customer_id' + belongs_to :shipping, :class_name => 'Customer', :foreign_key => 'shipping_customer_id' +end |