Fix buggy parallel assignment
In ruby, when we assign two variables to one value, the second variable is set to `nil`.
This commit is contained in:
@@ -122,7 +122,9 @@ class Legislation::ProcessesController < Legislation::BaseController
|
||||
rescue
|
||||
0
|
||||
end
|
||||
session[:random_seed], params[:random_seed] = seed
|
||||
|
||||
session[:random_seed] = seed
|
||||
params[:random_seed] = seed
|
||||
seed = (-1..1).cover?(seed) ? seed : 1
|
||||
::Legislation::Proposal.connection.execute "select setseed(#{seed})"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user