diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-04-30 01:41:32 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-04-30 01:41:32 +0900 |
commit | a44e62befd4fea60375f41ea129fd39a00cbf505 (patch) | |
tree | 64bff6a2e1355d122c086786fb6b3ff27dd86800 /activerecord | |
parent | 66c99d2430be3e8bde76e0f7712aa99ac0814b81 (diff) | |
download | rails-a44e62befd4fea60375f41ea129fd39a00cbf505.tar.gz rails-a44e62befd4fea60375f41ea129fd39a00cbf505.tar.bz2 rails-a44e62befd4fea60375f41ea129fd39a00cbf505.zip |
Remove `method_missing` in `Relation::Delegation`
The `method_missing` is never reached since 64c53d7c.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/delegation.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/lib/active_record/relation/delegation.rb b/activerecord/lib/active_record/relation/delegation.rb index 257ae04ff4..d08475710e 100644 --- a/activerecord/lib/active_record/relation/delegation.rb +++ b/activerecord/lib/active_record/relation/delegation.rb @@ -115,15 +115,5 @@ module ActiveRecord def respond_to_missing?(method, _) super || @klass.respond_to?(method) || arel.respond_to?(method) end - - def method_missing(method, *args, &block) - if @klass.respond_to?(method) - scoping { @klass.public_send(method, *args, &block) } - elsif arel.respond_to?(method) - arel.public_send(method, *args, &block) - else - super - end - end end end |