Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should be appear deprecation message for every call #29649

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Jul 1, 2017

Context: #29619 (comment)

@matthewd
Copy link
Member

matthewd commented Jul 1, 2017

Is it worth bothering with this?

As it's a deprecated path already, I was thinking we could just leave it going through method_missing for every call.

@kamipo kamipo force-pushed the should_be_appear_deprecation_message_for_every_call branch from 2ae9233 to 3c2a32b Compare July 1, 2017 16:00
@@ -91,7 +84,6 @@ def method_missing(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."
self.class.delegate method, to: :arel
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree with you. I changed to remove the delegate line.

@kamipo kamipo force-pushed the should_be_appear_deprecation_message_for_every_call branch from 3c2a32b to 893f127 Compare July 1, 2017 17:10
@kamipo kamipo merged commit 9fd6cce into rails:master Aug 27, 2017
@kamipo kamipo deleted the should_be_appear_deprecation_message_for_every_call branch August 27, 2017 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants