DEV: Change Bookmark.clear_reminder! update to update! (#12398)

* Change update to update! for bookmark clear_reminder!

This way the update will not fail silently
This commit is contained in:
Martin Brennan
2021-03-15 16:10:40 +11:00
committed by GitHub
parent 7970d1d99f
commit 139a547f22
+1 -1
View File
@@ -86,7 +86,7 @@ class Bookmark < ActiveRecord::Base
end
def clear_reminder!
update(
update!(
reminder_at: nil,
reminder_type: nil,
reminder_last_sent_at: Time.zone.now,