Remove no longer needed call to Poll::Answer#touch
This call was added in commit81f65f1ac, and the test for its need was added in commitcb1542874. However, both the test and the helper method relying on the `touch` call were removed in commitf90d0d9c4.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user