Permalink
Please sign in to comment.
Browse files
Fix polymorphic has_one associations declared in an abstract class. C…
…loses #8638. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
- Loading branch information...
Showing
with
37 additions
and 12 deletions.
- +2 −0 activerecord/CHANGELOG
- +1 −9 activerecord/lib/active_record/associations.rb
- +11 −2 activerecord/test/associations/join_model_test.rb
- +4 −0 activerecord/test/fixtures/db_definitions/schema.rb
- +7 −0 activerecord/test/fixtures/item.rb
- +4 −0 activerecord/test/fixtures/items.yml
- +8 −1 activerecord/test/fixtures/taggings.yml
@@ -0,0 +1,7 @@ | ||
+class AbstractItem < ActiveRecord::Base | ||
+ self.abstract_class = true | ||
+ has_one :tagging, :as => :taggable | ||
+end | ||
+ | ||
+class Item < AbstractItem | ||
+end |
@@ -0,0 +1,4 @@ | ||
+dvd: | ||
+ id: 1 | ||
+ name: Godfather | ||
+ |
0 comments on commit
89c79b8