Remove a new useless helper

This commit is contained in:
gregoirenovel 2018-09-10 20:36:47 +02:00
parent 747992025b
commit cac202342a

View file

@ -2,8 +2,6 @@ module NewUser
class DossiersController < UserController
include DossierHelper
helper_method :new_demarche_url
before_action :ensure_ownership!, except: [:index, :show, :demande, :messagerie, :brouillon, :update_brouillon, :modifier, :update, :recherche]
before_action :ensure_ownership_or_invitation!, only: [:show, :demande, :messagerie, :brouillon, :update_brouillon, :modifier, :update, :create_commentaire]
before_action :ensure_dossier_can_be_updated, only: [:update_identite, :update_brouillon, :modifier, :update]
@ -177,10 +175,6 @@ module NewUser
end
end
def new_demarche_url
"https://doc.demarches-simplifiees.fr/listes-des-demarches"
end
private
def ensure_dossier_can_be_updated