Sha256: c94bd48b642e5d6e54fe4fec40d07277a36b578706e4e315925fba9dd28b4656

Contents?: true

Size: 696 Bytes

Versions: 7

Compression:

Stored size: 696 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(email: user_key)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-3.1.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.0.2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.0.1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.0.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.0.0.pre.rc4 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.0.0.pre.rc3 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-3.0.0.pre.rc2 app/services/hyrax/workflow/changes_required_notification.rb