demarches-normaliennes/app/helpers/flipper_helper.rb

10 lines
212 B
Ruby
Raw Normal View History

2019-07-04 12:36:17 +02:00
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
2019-07-04 12:36:17 +02:00
end