Add Officer relationship to Poll Voter

This commit is contained in:
Bertocq
2017-10-04 00:39:31 +02:00
parent 885a7bff2a
commit e928eb38ac
5 changed files with 11 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ class Officing::VotersController < Officing::BaseController
document_number: @user.document_number,
user: @user,
poll: @poll,
origin: "booth")
origin: "booth",
officer: current_user.poll_officer)
@voter.save!
end