From 0f3e8e1ebb1255bfda455753b1b2087315f46fdc Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 6 Feb 2019 04:37:54 +0900 Subject: Relation no longer respond to Arel methods This follows up d97980a16d76ad190042b4d8578109714e9c53d0. --- activerecord/lib/active_record/relation/delegation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3