removes poll_id from voter

YAGNI
This commit is contained in:
Juanjo Bazán
2016-12-07 19:11:43 +01:00
parent 21c9f2c44b
commit bdf16395d3
3 changed files with 6 additions and 8 deletions

View File

@@ -7,8 +7,6 @@ class Poll
validate :in_census
validate :has_not_voted
before_create :assign_poll
def in_census
errors.add(:document_number, :not_in_census) unless census_api_response.valid?
end
@@ -29,9 +27,5 @@ class Poll
@census.name
end
def assign_poll
poll_id = booth_assignment.poll_id
end
end
end