Cleanup feature flags usage
This commit is contained in:
parent
46377fb7d9
commit
1c811083c0
9 changed files with 20 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue