Sha256: ab9c4cea4c3f38ab30c15afe50aa890c93d1e1c7a59ca1b129ddc129775bd7fe

Contents?: true

Size: 297 Bytes

Versions: 25

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

# Register koi admin roles with flipper for easy toggling

return unless Object.const_defined?("Flipper")

Flipper.register(:admins) do |flipper, _context|
  flipper.actor.is_a?(Admin::User) && !flipper.actor.archived?
  Admin::User.include(Flipper::Identifier)
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
katalyst-koi-4.7.3 config/initializers/flipper.rb
katalyst-koi-4.6.0 config/initializers/flipper.rb
katalyst-koi-4.5.9 config/initializers/flipper.rb
katalyst-koi-4.5.8 config/initializers/flipper.rb
katalyst-koi-4.5.7 config/initializers/flipper.rb
katalyst-koi-4.5.6 config/initializers/flipper.rb
katalyst-koi-4.5.5 config/initializers/flipper.rb
katalyst-koi-4.5.4 config/initializers/flipper.rb
katalyst-koi-4.5.3 config/initializers/flipper.rb
katalyst-koi-4.5.2 config/initializers/flipper.rb
katalyst-koi-4.5.1 config/initializers/flipper.rb
katalyst-koi-4.5.0 config/initializers/flipper.rb
katalyst-koi-4.5.0.beta.2 config/initializers/flipper.rb
katalyst-koi-4.5.0.beta.1 config/initializers/flipper.rb
katalyst-koi-4.4.1 config/initializers/flipper.rb
katalyst-koi-4.4.0 config/initializers/flipper.rb
katalyst-koi-4.3.5 config/initializers/flipper.rb
katalyst-koi-4.3.4 config/initializers/flipper.rb
katalyst-koi-4.3.3 config/initializers/flipper.rb
katalyst-koi-4.3.2 config/initializers/flipper.rb