Bring set_process back to legislation process controller, still needed until is correctly loaded
This commit is contained in:
@@ -20,6 +20,7 @@ class Legislation::ProcessesController < Legislation::BaseController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def debate
|
def debate
|
||||||
|
set_process
|
||||||
@phase = :debate_phase
|
@phase = :debate_phase
|
||||||
|
|
||||||
if @process.debate_phase.started?
|
if @process.debate_phase.started?
|
||||||
@@ -30,6 +31,7 @@ class Legislation::ProcessesController < Legislation::BaseController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def draft_publication
|
def draft_publication
|
||||||
|
set_process
|
||||||
@phase = :draft_publication
|
@phase = :draft_publication
|
||||||
|
|
||||||
if @process.draft_publication.started?
|
if @process.draft_publication.started?
|
||||||
@@ -46,6 +48,7 @@ class Legislation::ProcessesController < Legislation::BaseController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def allegations
|
def allegations
|
||||||
|
set_process
|
||||||
@phase = :allegations_phase
|
@phase = :allegations_phase
|
||||||
|
|
||||||
if @process.allegations_phase.started?
|
if @process.allegations_phase.started?
|
||||||
@@ -62,6 +65,7 @@ class Legislation::ProcessesController < Legislation::BaseController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def result_publication
|
def result_publication
|
||||||
|
set_process
|
||||||
@phase = :result_publication
|
@phase = :result_publication
|
||||||
|
|
||||||
if @process.result_publication.started?
|
if @process.result_publication.started?
|
||||||
@@ -77,5 +81,9 @@ class Legislation::ProcessesController < Legislation::BaseController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def set_process
|
||||||
|
@process = ::Legislation::Process.find(params[:process_id])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user