-
Notifications
You must be signed in to change notification settings - Fork 212
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
Is there a way to fetch the flags for a user #52
Comments
+1 |
I'm not sure what you mean by "flags". Do you mean to say it would be great to show what features a user has activated? |
Yup, sorry I meant features per user (internally we refer to them as On Saturday, May 24, 2014, Eric Rafaloff notifications@github.com wrote:
Joel Richards |
Right now, you can do this by enumerating over an array of expected feature names and calling However, I agree that something like this should be apart of Rollout. |
In our app, we wrap rollout for a bit more flexibility, and we solve this in the way that @EricR mentions def all_for_user(user)
$rollout.features.select do |feature|
$rollout.active?(feature, user)
end
end |
Closed by #90 |
it would be great to get a list of flags currently available to a user..
The text was updated successfully, but these errors were encountered: