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

Cop against default_scope #76

Closed
thisismydesign opened this issue Jun 21, 2019 · 0 comments · Fixed by #267
Closed

Cop against default_scope #76

thisismydesign opened this issue Jun 21, 2019 · 0 comments · Fixed by #267

Comments

@thisismydesign
Copy link

thisismydesign commented Jun 21, 2019

Is your feature request related to a problem? Please describe.

https://rails-bestpractices.com/posts/2013/06/15/default_scope-is-evil/
https://andycroll.com/ruby/dont-use-default-scope/
https://stackoverflow.com/questions/25087336/why-is-using-the-rails-default-scope-often-recommend-against/

Describe the solution you'd like

There should be a cop against declaring a default_scope in AR models.

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 a pull request may close this issue.

1 participant