diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-01-03 19:30:28 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-01-03 19:30:28 -0800 |
commit | 1459c8cc1d6baca324bf2350d8f89f4faa054f18 (patch) | |
tree | 0b50bb958fc400773e41cfa3fea42624dfcb0cc8 /activerecord/test/cases/modules_test.rb | |
parent | 6042067c0b20602e72954450e9e8a19dfa8a9f7d (diff) | |
download | rails-1459c8cc1d6baca324bf2350d8f89f4faa054f18.tar.gz rails-1459c8cc1d6baca324bf2350d8f89f4faa054f18.tar.bz2 rails-1459c8cc1d6baca324bf2350d8f89f4faa054f18.zip |
Changed ActiveRecord::Base.store_full_sti_class to be true by default reflecting the previously announced Rails 3 default [DHH]
Diffstat (limited to 'activerecord/test/cases/modules_test.rb')
-rw-r--r-- | activerecord/test/cases/modules_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/modules_test.rb b/activerecord/test/cases/modules_test.rb index 4f559bcaa5..d781a229f4 100644 --- a/activerecord/test/cases/modules_test.rb +++ b/activerecord/test/cases/modules_test.rb @@ -12,6 +12,8 @@ class ModulesTest < ActiveRecord::TestCase [:Firm, :Client].each do |const| @undefined_consts.merge! const => Object.send(:remove_const, const) if Object.const_defined?(const) end + + ActiveRecord::Base.store_full_sti_class = false end def teardown @@ -19,6 +21,8 @@ class ModulesTest < ActiveRecord::TestCase @undefined_consts.each do |constant, value| Object.send :const_set, constant, value unless value.nil? end + + ActiveRecord::Base.store_full_sti_class = true end def test_module_spanning_associations |