removes poll_id from voter
YAGNI
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user