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

Release a feature for all #27

Merged
merged 6 commits into from Oct 24, 2016
Merged

Release a feature for all #27

merged 6 commits into from Oct 24, 2016

Conversation

wwwbruno
Copy link
Contributor

@wwwbruno wwwbruno commented Oct 24, 2016

Resolves #26

Update your Gemfile to test

gem 'feature_flagger',
  git: 'https://github.com/ResultadosDigitais/feature_flagger.git',
  branch: 'release-a-feature-for-all'

Create the following methods

# Releasing a feature to all accounts
Account.release_to_all(:email_marketing, :new_email_flow)

# Unreleasing a feature to all accounts
Account.unrelease_to_all(:email_marketing, :new_email_flow)

# Return an array with all features released for all
Account.released_features_to_all

Change the following method

# Check if this feature is released to all or only for the specific id
account.rollout?(:email_marketing, :new_email_flow)

@geisonbiazus geisonbiazus merged commit ab88f83 into master Oct 24, 2016
@geisonbiazus geisonbiazus deleted the release-a-feature-for-all branch October 24, 2016 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants