aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/category.rb
diff options
context:
space:
mode:
authorTobias Lütke <tobias.luetke@gmail.com>2005-12-16 23:24:58 +0000
committerTobias Lütke <tobias.luetke@gmail.com>2005-12-16 23:24:58 +0000
commit5f06c483ca6a0434409aa12ec272654bc26735dd (patch)
tree4d4e05b12d3aa659550e972f65ae5e2712869ff8 /activerecord/test/fixtures/category.rb
parent85fe1ecaefe415ac1de36883f5f6162f49bd5287 (diff)
downloadrails-5f06c483ca6a0434409aa12ec272654bc26735dd.tar.gz
rails-5f06c483ca6a0434409aa12ec272654bc26735dd.tar.bz2
rails-5f06c483ca6a0434409aa12ec272654bc26735dd.zip
Fixed :through relations when using STI inherited classes would use the inherited class's name as foreign key on the join model
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/category.rb')
-rw-r--r--activerecord/test/fixtures/category.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/category.rb b/activerecord/test/fixtures/category.rb
index 880eb1573d..01938d1405 100644
--- a/activerecord/test/fixtures/category.rb
+++ b/activerecord/test/fixtures/category.rb
@@ -4,6 +4,9 @@ class Category < ActiveRecord::Base
def self.what_are_you
'a category...'
end
+
+ has_many :categorizations
+ has_many :authors, :through => :categorizations
end
class SpecialCategory < Category