Sha256: 15f4a9394788bfeaf38bd3f7dd499fd90c6bd4f6da88696b74f22943ffb59c32

Contents?: true

Size: 599 Bytes

Versions: 22

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module Workflow
    class ChangesRequiredNotification < AbstractNotification
      private

      def subject
        I18n.t('hyrax.notifications.workflow.changes_required.subject')
      end

      def message
        I18n.t('hyrax.notifications.workflow.changes_required.message',
               title: title,
               link: (link_to work_id, document_path),
               comment: comment)
      end

      def users_to_notify
        user_key = document.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/changes_required_notification.rb
hyrax-5.0.4 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-5.0.3 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-5.0.2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-5.0.1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-5.0.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-5.0.0.rc3 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-5.0.0.rc2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-5.0.0.rc1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.6.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-4.0.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-4.0.0.rc3 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-4.0.0.rc2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-4.0.0.rc1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.5.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-4.0.0.beta2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.4.2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-4.0.0.beta1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.4.1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.4.0 app/services/hyrax/workflow/changes_required_notification.rb