remove condition - Colin feedback review
This commit is contained in:
parent
ac834b0c0a
commit
b02edd15dc
1 changed files with 3 additions and 5 deletions
|
@ -305,12 +305,10 @@ module Administrateurs
|
||||||
end
|
end
|
||||||
|
|
||||||
def publish_revision
|
def publish_revision
|
||||||
if @procedure.draft_changed?
|
@procedure.publish_revision!
|
||||||
@procedure.publish_revision!
|
flash.notice = "Nouvelle version de la démarche publiée"
|
||||||
flash.notice = "Nouvelle version de la démarche publiée"
|
|
||||||
|
|
||||||
redirect_to admin_procedure_path(@procedure)
|
redirect_to admin_procedure_path(@procedure)
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def transfert
|
def transfert
|
||||||
|
|
Loading…
Reference in a new issue