Remove no longer needed call to Poll::Answer#touch

This call was added in commit 81f65f1ac, and the test for its need was
added in commit cb1542874. However, both the test and the helper method
relying on the `touch` call were removed in commit f90d0d9c4.
This commit is contained in:
Javi Martín
2024-05-11 04:02:30 +02:00
parent fb9156f9b8
commit 5f12db899f

View File

@@ -17,7 +17,6 @@ class Poll::Answer < ApplicationRecord
def save_and_record_voter_participation
transaction do
touch if persisted?
save!
Poll::Voter.find_or_create_by!(user: author, poll: poll, origin: "web")
end