Sha256: 8a19883f821d2fc25579eb38058bd730e6632d3d3541e0776ad728e5e92f1b72

Contents?: true

Size: 634 Bytes

Versions: 4

Compression:

Stored size: 634 Bytes

Contents

module Hyrax
  module Workflow
    class PendingReviewNotification < AbstractNotification
      private

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

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

        def users_to_notify
          super << user
        end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hyrax-3.0.0.pre.rc1 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-3.0.0.pre.beta3 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-3.0.0.pre.beta2 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-3.0.0.pre.beta1 app/services/hyrax/workflow/pending_review_notification.rb