aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb
index 5b84351ef1..6616de9f7f 100644
--- a/activerecord/lib/active_record/associations/collection_proxy.rb
+++ b/activerecord/lib/active_record/associations/collection_proxy.rb
@@ -1116,10 +1116,6 @@ module ActiveRecord
self
end
- def respond_to?(name, include_private = false)
- super || scope.respond_to?(name, include_private)
- end
-
delegate_methods = [
QueryMethods,
SpawnMethods,
@@ -1153,6 +1149,10 @@ module ActiveRecord
load_target
end
+ def respond_to_missing?(method, _)
+ scope.respond_to?(method) || super
+ end
+
def method_missing(method, *args, &block)
if scope.respond_to?(method)
scope.public_send(method, *args, &block)