diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG | 2 | ||||
-rw-r--r-- | activerecord/test/fixtures/subscriptions.yml | 12 | ||||
-rw-r--r-- | activerecord/test/models/subscription.rb | 4 |
3 files changed, 18 insertions, 0 deletions
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 |