demarches-normaliennes/app/helpers/flipper_helper.rb
2020-03-17 15:00:03 +01:00

9 lines
212 B
Ruby

module FlipperHelper
def feature_enabled?(feature_name)
Flipper.enabled?(feature_name, current_user)
end
def feature_enabled_for?(feature_name, item)
Flipper.enabled?(feature_name, item)
end
end