Files
openfoodnetwork/lib/open_food_network/feature_toggle.rb
Pau Pérez Fabregat aa9a85159e Merge pull request #7806 from mkllnk/feature-toggles
Remove custom feature toggles
2021-06-18 12:23:21 +02:00

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