Cleanup feature flags usage

This commit is contained in:
Paul Chavard 2021-03-03 18:20:34 +01:00
parent 46377fb7d9
commit 1c811083c0
9 changed files with 20 additions and 18 deletions

View file

@ -342,6 +342,10 @@ class Procedure < ApplicationRecord
end
end
def feature_enabled?(feature)
Flipper.enabled?(feature, self)
end
# Warning: dossier after_save build_default_champs must be removed
# to save a dossier created from this method
def new_dossier