From 4ab9b8b7679f5d88cece82f9639b22a02e734be1 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Tue, 31 Oct 2017 13:55:18 +0100 Subject: [PATCH] Move onto proposals method the random seed call --- app/controllers/legislation/processes_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/legislation/processes_controller.rb b/app/controllers/legislation/processes_controller.rb index 85ce7a1a2..804703381 100644 --- a/app/controllers/legislation/processes_controller.rb +++ b/app/controllers/legislation/processes_controller.rb @@ -2,7 +2,7 @@ class Legislation::ProcessesController < Legislation::BaseController has_filters %w{open next past}, only: :index load_and_authorize_resource - before_action :set_random_seed, only: :index + before_action :set_random_seed, only: :proposals def index @current_filter ||= 'open' @@ -115,6 +115,6 @@ class Legislation::ProcessesController < Legislation::BaseController 0 end session[:random_seed], params[:random_seed] = seed - ::Legislation::Process.connection.execute "select setseed(#{seed})" + ::Legislation::Proposal.connection.execute "select setseed(#{seed})" end end