mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
18 lines
455 B
Ruby
18 lines
455 B
Ruby
# frozen_string_literal: true
|
|
|
|
module OpenFoodNetwork
|
|
# Feature toggles are configured via Flipper.
|
|
#
|
|
# We define features in the initializer and then it can be customised via the
|
|
# web interface on each server.
|
|
#
|
|
# - config/initializers/flipper.rb
|
|
# - http://localhost:3000/admin/feature-toggle/features
|
|
#
|
|
module FeatureToggle
|
|
def self.enabled?(feature_name, user = nil)
|
|
Flipper.enabled?(feature_name, user)
|
|
end
|
|
end
|
|
end
|