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

ActiveSupport concerning supports access modifiers #47

Merged
merged 2 commits into from Aug 30, 2019

Conversation

jasonkarns
Copy link
Contributor

This change is necessary because access modifiers within concerning blocks are not useless.

ActiveSupport::Module::Concerning's block creates a context in which access modifiers are respected.

see rubocop/rubocop#3422
https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/UselessAccessModifier

This change is necessary because access modifiers within `concerning` blocks are not useless.

[ActiveSupport::Module::Concerning](https://api.rubyonrails.org/classes/Module/Concerning.html)'s block creates a context in which access modifiers are respected.

see rubocop/rubocop#3422
https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/UselessAccessModifier
@jasonkarns
Copy link
Contributor Author

I'm assuming it's desirable to place this cop configuration in the rails config because the configuration is specific to ActiveSupport.

@jasonkarns
Copy link
Contributor Author

@joelhawksley what's the deploy process for this? just merge?

@joelhawksley joelhawksley merged commit 3b29ee8 into github:master Aug 30, 2019
@jasonkarns jasonkarns deleted the patch-1 branch August 30, 2019 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants