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:
parent
7970d1d99f
commit
139a547f22
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue