Created
October 18, 2019 13:47
-
-
Save lbadura/26cbe189646fb7097ef126b72c2ec8bc to your computer and use it in GitHub Desktop.
App Framework beta flags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# grid console payments production | |
# bundle exec rails c production | |
# paste and call :-) | |
app_framework = proc do |account_id| | |
BetaFeature.transaction do | |
features = %w[zendesk_app_market:sell_apps_public zendesk_app_market:sell_apps_private] | |
features.each do |feature| | |
BetaFeature.create!(account_id: account_id, | |
feature: feature, enabled: true, permanent: true) | |
end | |
Caching::SubscriptionAccount.remove(account_id) | |
Features::NestedList.call(account_id: account_id) | |
end | |
end | |
app_framework.call(account_id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment