Skip to content

Instantly share code, notes, and snippets.

@lbadura
Created October 18, 2019 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbadura/26cbe189646fb7097ef126b72c2ec8bc to your computer and use it in GitHub Desktop.
Save lbadura/26cbe189646fb7097ef126b72c2ec8bc to your computer and use it in GitHub Desktop.
App Framework beta flags
# 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