Sha256: a950674fecaf290186e8e09d655864507ccb72e373952cf7e030140b219b40b8

Contents?: true

Size: 500 Bytes

Versions: 10

Compression:

Stored size: 500 Bytes

Contents

module Hyrax
  module Workflow
    class ChangesRequiredNotification < AbstractNotification
      protected

        def subject
          'Your deposit requires changes'
        end

        def message
          "#{title} (#{link_to work_id, document_path}) requires additional changes before approval.\n\n '#{comment}'"
        end

      private

        def users_to_notify
          user_key = document.depositor
          super << ::User.find_by(email: user_key)
        end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-1.1.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-1.0.5 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-1.0.4 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-1.0.3 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-1.0.2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-1.0.1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-1.0.0.rc2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-1.0.0.rc1 app/services/hyrax/workflow/changes_required_notification.rb
test_hyrax-0.0.1.alpha app/services/hyrax/workflow/changes_required_notification.rb