dossiers: shorten method name
This commit is contained in:
parent
86939196e7
commit
d251ebc2f4
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue