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

Version Path
hyrax-5.1.0.pre.beta1 app/services/hyrax/workflow/deposited_notification.rb
hyrax-5.0.4 app/services/hyrax/workflow/deposited_notification.rb
hyrax-5.0.3 app/services/hyrax/workflow/deposited_notification.rb
hyrax-5.0.2 app/services/hyrax/workflow/deposited_notification.rb
hyrax-5.0.1 app/services/hyrax/workflow/deposited_notification.rb
hyrax-5.0.0 app/services/hyrax/workflow/deposited_notification.rb
hyrax-5.0.0.rc3 app/services/hyrax/workflow/deposited_notification.rb
hyrax-5.0.0.rc2 app/services/hyrax/workflow/deposited_notification.rb
hyrax-5.0.0.rc1 app/services/hyrax/workflow/deposited_notification.rb
hyrax-3.6.0 app/services/hyrax/workflow/deposited_notification.rb
hyrax-4.0.0 app/services/hyrax/workflow/deposited_notification.rb
hyrax-4.0.0.rc3 app/services/hyrax/workflow/deposited_notification.rb
hyrax-4.0.0.rc2 app/services/hyrax/workflow/deposited_notification.rb
hyrax-4.0.0.rc1 app/services/hyrax/workflow/deposited_notification.rb
hyrax-3.5.0 app/services/hyrax/workflow/deposited_notification.rb
hyrax-4.0.0.beta2 app/services/hyrax/workflow/deposited_notification.rb
hyrax-3.4.2 app/services/hyrax/workflow/deposited_notification.rb
hyrax-4.0.0.beta1 app/services/hyrax/workflow/deposited_notification.rb
hyrax-3.4.1 app/services/hyrax/workflow/deposited_notification.rb
hyrax-3.4.0 app/services/hyrax/workflow/deposited_notification.rb