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

Mask records disregarding default_scope #41

Merged
merged 1 commit into from
Aug 5, 2017
Merged

Conversation

skalee
Copy link
Contributor

@skalee skalee commented Aug 5, 2017

Mask all the records, no matter if default_scope is defined for given model or not.

User.class_eval do
attr_masker :last_name

default_scope ->(){ where(last_name: "Solo") }

Choose a reason for hiding this comment

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

Space missing to the left of {.

Mask all the records, even if default_scope is defined for given model.
@skalee skalee merged commit 1b45703 into master Aug 5, 2017
@skalee skalee deleted the handle-default-scope branch August 5, 2017 17:20
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