diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-14 22:04:22 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-17 16:08:32 -0500 |
commit | d97980a16d76ad190042b4d8578109714e9c53d0 (patch) | |
tree | 0972249bfabceade1ff49729a9b6f6f1945de867 /activerecord/lib | |
parent | a7becf147afc85c354e5cfa519911a948d25fc4d (diff) | |
download | rails-d97980a16d76ad190042b4d8578109714e9c53d0.tar.gz rails-d97980a16d76ad190042b4d8578109714e9c53d0.tar.bz2 rails-d97980a16d76ad190042b4d8578109714e9c53d0.zip |
Remove delegation of missing methods in a relation to arel
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/delegation.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation/delegation.rb b/activerecord/lib/active_record/relation/delegation.rb index 2055b1637a..6e8a1fcad4 100644 --- a/activerecord/lib/active_record/relation/delegation.rb +++ b/activerecord/lib/active_record/relation/delegation.rb @@ -112,10 +112,6 @@ module ActiveRecord if @klass.respond_to?(method) self.class.delegate_to_scoped_klass(method) scoping { @klass.public_send(method, *args, &block) } - elsif arel.respond_to?(method) - ActiveSupport::Deprecation.warn \ - "Delegating #{method} to arel is deprecated and will be removed in Rails 6.0." - arel.public_send(method, *args, &block) else super end |