app: remove the feature flag for pieces justificatives auto-upload

The feature works as intended: we can remove the feature flag.
This commit is contained in:
Pierre de La Morinerie 2020-05-14 17:39:07 +02:00
parent e3f4547841
commit 93bb5283ff
3 changed files with 58 additions and 96 deletions

View file

@ -33,7 +33,7 @@ module ChampHelper
end
def auto_attach_url(form, object)
if feature_enabled?(:autoupload_dossier_attachments) && object.is_a?(Champ) && object.persisted? && object.public?
if object.is_a?(Champ) && object.persisted? && object.public?
champs_piece_justificative_url(object.id)
end
end