app/services/hyrax/workflow/deposit_approved_notification.rb
# frozen_string_literal: true
module Hyrax
module Workflow
class DepositApprovedNotification < AbstractNotification
private
def subject
I18n.t('hyrax.notifications.workflow.deposit_approved.subject')
end
def message
I18n.t('hyrax.notifications.workflow.deposit_approved.message', title: title, link: (link_to work_id, document_path),
user: user.user_key, comment: comment)
end
def users_to_notify
user_key = ActiveFedora::Base.find(work_id).depositor
super << ::User.find_by(uid: user_key)
end
end
end
end