diff options
author | Daniel Guettler <daniel.guettler@gmail.com> | 2008-07-21 15:21:13 -0400 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-07-22 01:24:47 +0100 |
commit | c67713a2fe78d6f2db49b09771841f5022995703 (patch) | |
tree | 7a12fd34af595a3712889d9a2d3264c84279f692 /activerecord/test/models/company.rb | |
parent | 89ec72c2818a592323fe4ec3277638d379f1ac2a (diff) | |
download | rails-c67713a2fe78d6f2db49b09771841f5022995703.tar.gz rails-c67713a2fe78d6f2db49b09771841f5022995703.tar.bz2 rails-c67713a2fe78d6f2db49b09771841f5022995703.zip |
Use klass.sti_name to make sure associations take store_full_sti_class into account. [#671 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/test/models/company.rb')
-rwxr-xr-x | activerecord/test/models/company.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb index e6aa810146..cd435948a1 100755 --- a/activerecord/test/models/company.rb +++ b/activerecord/test/models/company.rb @@ -18,6 +18,13 @@ end module Namespaced class Company < ::Company end + + class Firm < ::Company + has_many :clients, :class_name => 'Namespaced::Client' + end + + class Client < ::Company + end end class Firm < Company |