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

Support clearance similar to devise/warden #313

Merged
merged 1 commit into from
Nov 12, 2016

Conversation

jrochkind
Copy link
Contributor

Clearance is a fairly popular alternative. https://github.com/thoughtbot/clearance

@martin308
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

@jrochkind jrochkind Aug 22, 2016

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.

@martin308
Copy link
Contributor

@jrochkind do we need to require clearance_user.rb? warden_user.rb is required in bugsnag.rb

@kattrali kattrali added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Aug 22, 2016
@jrochkind
Copy link
Contributor Author

Removed/fixed the accidentally copy-pasted comments from the devise/warden version.

Added the missing require.

Thanks!

@kattrali kattrali removed the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Sep 5, 2016
@kattrali
Copy link
Contributor

kattrali commented Sep 5, 2016

Looks good to me 👍

@kattrali kattrali added this to the 5.1.0 milestone Sep 6, 2016
@keeganlow keeganlow merged commit d3859c0 into bugsnag:master Nov 12, 2016
@keeganlow
Copy link
Contributor

@jrochkind, I just made a little tweak to this and merged - thanks!

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.

4 participants