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

Unable to create individual whitelists/blacklists for features #91

Closed
alexalth opened this issue Jun 30, 2015 · 5 comments
Closed

Unable to create individual whitelists/blacklists for features #91

alexalth opened this issue Jun 30, 2015 · 5 comments

Comments

@alexalth
Copy link

I am able to use the blacklist/whitelist for all features, but when I use it for individual features it is not even executing.

Arturo::Feature.blacklist(:awesome) do |user|
  user.account.free?
end
@jamesarosen
Copy link
Contributor

Did you try 'awesome' instead of :awesome? There were some changes a while back to how Features stored their symbolic names.

@alexalth
Copy link
Author

It works this way, thanks 👍

@jamesarosen
Copy link
Contributor

OK. So we'll need to fix the docs or make .blacklist work either way.

@jamesarosen
Copy link
Contributor

What version are you using? I ask because we switched to always comparing strings in v2.1.0.

@alexalth
Copy link
Author

alexalth commented Jul 1, 2015

@jamesarosen I just noticed we are using version 1.0, I believe that's why the error. Sorry about it, my mistake.

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

No branches or pull requests

2 participants