diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-04-30 23:30:50 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-04-30 23:30:50 -0500 |
commit | 6f20efdaf733db26fbf337da73121983785064d5 (patch) | |
tree | 18dbb4c1dde8b2862df67502d1a9b8ca224d5fc3 /activerecord/test/models/subscriber.rb | |
parent | 1eb686a0e5944d99d40bc8ab8039e4179ed78cf7 (diff) | |
download | rails-6f20efdaf733db26fbf337da73121983785064d5.tar.gz rails-6f20efdaf733db26fbf337da73121983785064d5.tar.bz2 rails-6f20efdaf733db26fbf337da73121983785064d5.zip |
Fixed AssociationsPreload such that it doesnt require foreign keys to be integers (fcheung) [#33 state:resolved]
Diffstat (limited to 'activerecord/test/models/subscriber.rb')
-rw-r--r-- | activerecord/test/models/subscriber.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/subscriber.rb b/activerecord/test/models/subscriber.rb index 51335a8f20..5b78014e6f 100644 --- a/activerecord/test/models/subscriber.rb +++ b/activerecord/test/models/subscriber.rb @@ -1,5 +1,7 @@ class Subscriber < ActiveRecord::Base set_primary_key 'nick' + has_many :subscriptions + has_many :books, :through => :subscriptions end class SpecialSubscriber < Subscriber |