2019-07-04 12:36:17 +02:00
|
|
|
module FlipperHelper
|
|
|
|
def feature_enabled?(feature_name)
|
|
|
|
Flipper.enabled?(feature_name, current_user)
|
|
|
|
end
|
2020-03-04 15:51:33 +01:00
|
|
|
|
|
|
|
def feature_enabled_for?(feature_name, item)
|
|
|
|
Flipper.enabled?(feature_name, item)
|
|
|
|
end
|
2019-07-04 12:36:17 +02:00
|
|
|
end
|