diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-03-19 00:53:24 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-03-19 00:53:24 +0000 |
commit | 57af961a80ee01d1876dfc50d93544906a995617 (patch) | |
tree | 571058edf37e0903d5bf72bea16925d36a486eda /activerecord/test/fixtures | |
parent | 49efa02b9e8d868b2d28a3db76269d8b8fcde0a6 (diff) | |
download | rails-57af961a80ee01d1876dfc50d93544906a995617.tar.gz rails-57af961a80ee01d1876dfc50d93544906a995617.tar.bz2 rails-57af961a80ee01d1876dfc50d93544906a995617.zip |
Raise error when trying to select many polymorphic objects with has_many :through or :include (closes #4226) [josh@hasmanythrough.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/tag.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/test/fixtures/tag.rb b/activerecord/test/fixtures/tag.rb index 78b6f6666c..ed3c6ce34a 100644 --- a/activerecord/test/fixtures/tag.rb +++ b/activerecord/test/fixtures/tag.rb @@ -1,4 +1,5 @@ class Tag < ActiveRecord::Base - has_many :taggings, :as => :taggable - has_one :tagging, :as => :taggable + has_many :taggings, :as => :taggable + has_many :taggables, :through => :taggings + has_one :tagging, :as => :taggable end
\ No newline at end of file |