From 5f12db899f66ff345ad5cf0e575e1af1c857f38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 11 May 2024 04:02:30 +0200 Subject: [PATCH] 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. --- app/models/poll/answer.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/poll/answer.rb b/app/models/poll/answer.rb index e3fbef6f7..932fe966b 100644 --- a/app/models/poll/answer.rb +++ b/app/models/poll/answer.rb @@ -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