examples/ui/basic.ru in flipper-ui-0.21.0.rc1 vs examples/ui/basic.ru in flipper-ui-0.21.0.rc2

- old
+ new

@@ -9,30 +9,19 @@ # http://localhost:9999/ # require 'bundler/setup' require "flipper-ui" require "flipper/adapters/pstore" -require "active_support/notifications" Flipper.register(:admins) { |actor| actor.respond_to?(:admin?) && actor.admin? } Flipper.register(:early_access) { |actor| actor.respond_to?(:early?) && actor.early? } -# Setup logging of flipper calls. -if ENV["LOG"] == "1" - $logger = Logger.new(STDOUT) - require "flipper/instrumentation/log_subscriber" - Flipper::Instrumentation::LogSubscriber.logger = $logger -end - -adapter = Flipper::Adapters::PStore.new -flipper = Flipper.new(adapter, instrumenter: ActiveSupport::Notifications) - Flipper::UI.configure do |config| # config.banner_text = 'Production Environment' # config.banner_class = 'danger' config.feature_creation_enabled = true config.feature_removal_enabled = true @@ -62,8 +51,8 @@ # flipper[:secrets].enable_group :early_access # flipper[:logging].enable_percentage_of_time 5 # flipper[:new_cache].enable_percentage_of_actors 15 # flipper["a/b"].add -run Flipper::UI.app(flipper) { |builder| +run Flipper::UI.app { |builder| builder.use Rack::Session::Cookie, secret: "_super_secret" }