aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/delegation.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-02-06 04:37:54 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-02-06 04:58:45 +0900
commit0f3e8e1ebb1255bfda455753b1b2087315f46fdc (patch)
treeaef0f617f17d55c8ab98675fcb8440cdb6a0e01c /activerecord/lib/active_record/relation/delegation.rb
parent7caea98e189c02721b2e944a074c405b033852eb (diff)
downloadrails-0f3e8e1ebb1255bfda455753b1b2087315f46fdc.tar.gz
rails-0f3e8e1ebb1255bfda455753b1b2087315f46fdc.tar.bz2
rails-0f3e8e1ebb1255bfda455753b1b2087315f46fdc.zip
Relation no longer respond to Arel methods
This follows up d97980a16d76ad190042b4d8578109714e9c53d0.
Diffstat (limited to 'activerecord/lib/active_record/relation/delegation.rb')
-rw-r--r--activerecord/lib/active_record/relation/delegation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/delegation.rb b/activerecord/lib/active_record/relation/delegation.rb
index 6e8a1fcad4..f7c3b3783f 100644
--- a/activerecord/lib/active_record/relation/delegation.rb
+++ b/activerecord/lib/active_record/relation/delegation.rb
@@ -132,7 +132,7 @@ module ActiveRecord
private
def respond_to_missing?(method, _)
- super || @klass.respond_to?(method) || arel.respond_to?(method)
+ super || @klass.respond_to?(method)
end
end
end