Sha256: fe81d5c3bdfcb41486ff07b21f79acca5eed7028b65d8ddd25ff248269ba8e17
Contents?: true
Size: 625 Bytes
Versions: 22
Compression:
Stored size: 625 Bytes
Contents
# frozen_string_literal: true module Hyrax module Workflow class DepositedNotification < AbstractNotification private def subject I18n.t('hyrax.notifications.workflow.deposited.subject') end def message I18n.t('hyrax.notifications.workflow.deposited.message', title: title, link: (link_to work_id, document_path), user: user.user_key, comment: comment) end def users_to_notify user_key = @entity.proxy_for.depositor super << ::User.find_by_user_key(user_key) end end end end
Version data entries
22 entries across 22 versions & 1 rubygems