mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
21 lines
365 B
Ruby
21 lines
365 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class TaskDueDateNotification < BaseNotification
|
||
|
def message
|
||
|
I18n.t(
|
||
|
'notifications.notification.my_module_due_date_reminder_html',
|
||
|
my_module_name: subject.name
|
||
|
)
|
||
|
end
|
||
|
|
||
|
def self.subtype
|
||
|
:my_module_due_date_reminder
|
||
|
end
|
||
|
|
||
|
def title; end
|
||
|
|
||
|
def subject
|
||
|
MyModule.find(params[:my_module_id])
|
||
|
end
|
||
|
end
|