dossiers: shorten method name

This commit is contained in:
Pierre de La Morinerie 2019-02-06 18:20:35 +01:00
parent 86939196e7
commit d251ebc2f4
2 changed files with 2 additions and 2 deletions

View file

@ -257,7 +257,7 @@ module NewUser
end
def ensure_dossier_can_be_updated
if !dossier.can_be_updated_by_the_user?
if !dossier.can_be_updated_by_user?
flash.alert = 'Votre dossier ne peut plus être modifié'
redirect_to dossiers_path
end

View file

@ -166,7 +166,7 @@ class Dossier < ApplicationRecord
!procedure.archivee? && brouillon?
end
def can_be_updated_by_the_user?
def can_be_updated_by_user?
brouillon? || en_construction?
end