Fix delete_all / destroy_all calls.

This commit is contained in:
evazion
2018-04-11 20:49:38 -05:00
parent d9d98f05c2
commit 4233d2149f
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ class UserPasswordResetNonce < ApplicationRecord
after_create :deliver_notice
def self.prune!
destroy_all(["created_at < ?", 1.week.ago])
where("created_at < ?", 1.week.ago).destroy_all
end
def deliver_notice