diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-30 11:24:39 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-30 15:31:22 -0700 |
commit | f261ef42cc2c8f0fc31d6e6f464bacd6ca9eb581 (patch) | |
tree | ac1d59aaac3d0dc0d9fc5d42fbcf092aa009f6d9 /activerecord/test | |
parent | 2ebc564394c5aec3d135e774dece6127147ba0c5 (diff) | |
download | rails-f261ef42cc2c8f0fc31d6e6f464bacd6ca9eb581.tar.gz rails-f261ef42cc2c8f0fc31d6e6f464bacd6ca9eb581.tar.bz2 rails-f261ef42cc2c8f0fc31d6e6f464bacd6ca9eb581.zip |
cache the plural name on the reflection so we do not pay pluralize costs on joins
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/reflection_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/reflection_test.rb b/activerecord/test/cases/reflection_test.rb index 58c78ab058..41312e8661 100644 --- a/activerecord/test/cases/reflection_test.rb +++ b/activerecord/test/cases/reflection_test.rb @@ -76,7 +76,7 @@ class ReflectionTest < ActiveRecord::TestCase end def test_reflection_klass_for_nested_class_name - reflection = MacroReflection.new(nil, nil, { :class_name => 'MyApplication::Business::Company' }, nil) + reflection = MacroReflection.new(:company, nil, { :class_name => 'MyApplication::Business::Company' }, ActiveRecord::Base) assert_nothing_raised do assert_equal MyApplication::Business::Company, reflection.klass end |