-
Notifications
You must be signed in to change notification settings - Fork 174
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
Support clearance similar to devise/warden #313
Conversation
Thanks for this @jrochkind! Taking a look now 👀 |
user = {} | ||
user_object = notification.request_data[:rack_env]["clearance"].current_user | ||
if user_object | ||
# Build the user info for this scope |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a valid comment for clearance? Does it have scopes like warden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clearance has no scopes, I'll remove the accidentally copy-pasted comments.
@jrochkind do we need to require |
Clearance is a fairly popular alternative. https://github.com/thoughtbot/clearance
6910b8d
to
d3859c0
Compare
Removed/fixed the accidentally copy-pasted comments from the devise/warden version. Added the missing Thanks! |
Looks good to me 👍 |
@jrochkind, I just made a little tweak to this and merged - thanks! |
Clearance is a fairly popular alternative. https://github.com/thoughtbot/clearance