diff options
author | Ruy Asan <ruyasan@gmail.com> | 2009-05-01 13:09:29 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-01 14:47:56 -0700 |
commit | 99c103be1165da9c8299bc0977188ecf167e06a5 (patch) | |
tree | f57524e693656e67f09173f130dbc174b298daf6 /activerecord/test/models/organization.rb | |
parent | db0bfe4ede3cdfc2e4ccdb2a89525a914e6d0913 (diff) | |
download | rails-99c103be1165da9c8299bc0977188ecf167e06a5.tar.gz rails-99c103be1165da9c8299bc0977188ecf167e06a5.tar.bz2 rails-99c103be1165da9c8299bc0977188ecf167e06a5.zip |
Fixed bug with polymorphic has_one :as pointing to an STI record
[#2594 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/test/models/organization.rb')
-rw-r--r-- | activerecord/test/models/organization.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/models/organization.rb b/activerecord/test/models/organization.rb index d79d5037c8..5d1308354d 100644 --- a/activerecord/test/models/organization.rb +++ b/activerecord/test/models/organization.rb @@ -1,4 +1,8 @@ class Organization < ActiveRecord::Base has_many :member_details has_many :members, :through => :member_details +end + +class SponsorableOrganization < Organization + has_one :sponsor, :as => :sponsorable end
\ No newline at end of file |