mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
4b55b59931
Generated using `bin/rake annotate:clean`
22 lines
460 B
Ruby
22 lines
460 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ShelvedNotification < ActiveRecord::Base
|
|
belongs_to :notification
|
|
|
|
def process
|
|
NotificationEmailer.process_notification(notification, no_delay: true)
|
|
end
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: shelved_notifications
|
|
#
|
|
# id :bigint not null, primary key
|
|
# notification_id :integer not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_shelved_notifications_on_notification_id (notification_id)
|
|
#
|