mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
20 lines
369 B
Ruby
20 lines
369 B
Ruby
# frozen_string_literal: true
|
|
|
|
class LowStockNotification < BaseNotification
|
|
def message
|
|
I18n.t(
|
|
'notifications.notification.item_low_stock_reminder_html',
|
|
repository_row_name: subject.name
|
|
)
|
|
end
|
|
|
|
def self.subtype
|
|
:item_low_stock_reminder
|
|
end
|
|
|
|
def title; end
|
|
|
|
def subject
|
|
RepositoryRow.find(params[:repository_row_id])
|
|
end
|
|
end
|