From ab4d455d6d149fba9243444f4c7c7f78ecb78a96 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 1 May 2008 15:03:16 -0500 Subject: Added missing files --- activerecord/CHANGELOG | 2 ++ activerecord/test/fixtures/subscriptions.yml | 12 ++++++++++++ activerecord/test/models/subscription.rb | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 activerecord/test/fixtures/subscriptions.yml create mode 100644 activerecord/test/models/subscription.rb diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index f72d8aceaa..941221afc7 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed has_many :through .create with no parameters caused a "can't dup NilClass" error (Steven Soroka) [#85] + * Added block-setting of attributes for Base.create like Base.new already has (Adam Meehan) [#39] * Fixed that pessimistic locking you reference the quoted table name (Josh Susser) [#67] diff --git a/activerecord/test/fixtures/subscriptions.yml b/activerecord/test/fixtures/subscriptions.yml new file mode 100644 index 0000000000..371bfd3422 --- /dev/null +++ b/activerecord/test/fixtures/subscriptions.yml @@ -0,0 +1,12 @@ +webster_awdr: + id: 1 + subscriber_id: webster132 + book_id: 1 +webster_rfr: + id: 2 + subscriber_id: webster132 + book_id: 2 +alterself_awdr: + id: 3 + subscriber_id: alterself + book_id: 3 \ No newline at end of file diff --git a/activerecord/test/models/subscription.rb b/activerecord/test/models/subscription.rb new file mode 100644 index 0000000000..4bdb36ea46 --- /dev/null +++ b/activerecord/test/models/subscription.rb @@ -0,0 +1,4 @@ +class Subscription < ActiveRecord::Base + belongs_to :subscriber + belongs_to :book +end -- cgit v1.2.3