Fix various rubocop warnings.

This commit is contained in:
evazion
2021-09-27 00:44:41 -05:00
parent a2a4ab887d
commit 79fdfa86ae
39 changed files with 149 additions and 154 deletions

View File

@@ -48,7 +48,7 @@ class Note < ApplicationRecord
end
def update_post
if self.saved_changes?
if saved_changes?
if post.notes.active.exists?
post.update_columns(last_noted_at: updated_at)
else