diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-09-14 10:36:53 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-09-14 10:45:28 +0900 |
commit | f27a45af467abdceff5ac1176d22dad86a09ec0c (patch) | |
tree | 89c64c6714f65a33e8a3119db9d1efa13fd281cb /activerecord/test | |
parent | bdc2ba0ec9e1920965841da6e1a392d1ba2816e4 (diff) | |
download | rails-f27a45af467abdceff5ac1176d22dad86a09ec0c.tar.gz rails-f27a45af467abdceff5ac1176d22dad86a09ec0c.tar.bz2 rails-f27a45af467abdceff5ac1176d22dad86a09ec0c.zip |
Remove unused explicit delegation to `klass` in `relation`
It is only used `primary_key` and `connection` in the internal, so it is
not needed to delegate others to `klass` explicitly.
This doesn't change public behavior because `relation` will delegate
missing method to `klass`.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/relation_test.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/test/cases/relation_test.rb b/activerecord/test/cases/relation_test.rb index c1805aa592..fd5985ffe7 100644 --- a/activerecord/test/cases/relation_test.rb +++ b/activerecord/test/cases/relation_test.rb @@ -73,11 +73,6 @@ module ActiveRecord assert_equal({}, relation.where_values_hash) end - def test_table_name_delegates_to_klass - relation = Relation.new(FakeKlass, :b, Post.predicate_builder) - assert_equal "posts", relation.table_name - end - def test_scope_for_create relation = Relation.new(FakeKlass, :b, nil) assert_equal({}, relation.scope_for_create) |