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
|
rescue
|
||||||
0
|
0
|
||||||
end
|
end
|
||||||
session[:random_seed], params[:random_seed] = seed
|
|
||||||
|
session[:random_seed] = seed
|
||||||
|
params[:random_seed] = seed
|
||||||
seed = (-1..1).cover?(seed) ? seed : 1
|
seed = (-1..1).cover?(seed) ? seed : 1
|
||||||
::Legislation::Proposal.connection.execute "select setseed(#{seed})"
|
::Legislation::Proposal.connection.execute "select setseed(#{seed})"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user