mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Replace 'processed' column on notifications with new table (#11864)
This commit is contained in:
committed by
GitHub
parent
60f10e9067
commit
809274fe0d
9
app/models/shelved_notification.rb
Normal file
9
app/models/shelved_notification.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ShelvedNotification < ActiveRecord::Base
|
||||
belongs_to :notification
|
||||
|
||||
def process
|
||||
NotificationEmailer.process_notification(notification, no_delay: true)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user