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

Add paranoia_scope as named version of default_scope #184

Merged
merged 1 commit into from
Nov 27, 2014
Merged

Add paranoia_scope as named version of default_scope #184

merged 1 commit into from
Nov 27, 2014

Conversation

nyjt
Copy link
Contributor

@nyjt nyjt commented Nov 23, 2014

In the case when you have 2 or more default scopes by 2 or more gems and you unscope the query, but you want to use default_scope of this gem. It is very comfortable if the gem provides a named scope out of box.

jhawthorn added a commit that referenced this pull request Nov 27, 2014
Add paranoia_scope as named version of default_scope
@jhawthorn jhawthorn merged commit e302d75 into rubysherpas:rails4 Nov 27, 2014
@jhawthorn
Copy link
Collaborator

Seems very reasonable. Thanks @nyjt 🌟

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.

2 participants