aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-06-28 17:40:03 -0400
committerGitHub <noreply@github.com>2017-06-28 17:40:03 -0400
commit1e798ccb8ff83cc5a014d333e7a1e92e5d146c23 (patch)
tree3df75e981b586be190f2aa435a6402c79cc52049 /activerecord/lib
parent9c49b334f99cfdf00f62c7af091cb5e4142ef496 (diff)
parenta44e62befd4fea60375f41ea129fd39a00cbf505 (diff)
downloadrails-1e798ccb8ff83cc5a014d333e7a1e92e5d146c23.tar.gz
rails-1e798ccb8ff83cc5a014d333e7a1e92e5d146c23.tar.bz2
rails-1e798ccb8ff83cc5a014d333e7a1e92e5d146c23.zip
Merge pull request #28932 from kamipo/remove_method_missing_in_relation_delegation
Remove `method_missing` in `Relation::Delegation`
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/relation/delegation.rb10
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 8b4dd25689..0e88ef4c7e 100644
--- a/activerecord/lib/active_record/relation/delegation.rb
+++ b/activerecord/lib/active_record/relation/delegation.rb
@@ -113,15 +113,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