Sha256: dab090d112e560071ee9d11987900cefef82b7ac11ca38039d30a38cd9ed9c77

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

require 'flipper/ui'
require "flipper/adapters/active_record"

Flipper::UI.configure do |config|
  if Rails.env.production?
    config.banner_text = "Production Environment"
  else
    config.banner_text = "Non-Production Environment"
    config.banner_class = "primary"
  end

  config.fun = false
  config.cloud_recommendation = false
end

# - Define All Actor here -
Flipper.register(:admins) do |actor, context|
  actor.respond_to?(:admin?) && actor.admin?
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
boring_generators-0.15.0 lib/generators/boring/flipper/install/templates/initializer.rb.tt
boring_generators-0.14.0 lib/generators/boring/flipper/install/templates/initializer.rb.tt
boring_generators-0.13.0 lib/generators/boring/flipper/install/templates/initializer.rb.tt
boring_generators-0.12.0 lib/generators/boring/flipper/install/templates/initializer.rb.tt