Sha256: becbb7c68a4b5b94eaef9e9ca56f49a07124c295d9597c4d915c32c04640176a

Contents?: true

Size: 483 Bytes

Versions: 44

Compression:

Stored size: 483 Bytes

Contents

module Hyrax
  module Workflow
    class ChangesRequiredNotification < AbstractNotification
      private

        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

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.9.5 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.9.4 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.9.3 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.9.2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.9.1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.9.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.8.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.7.2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.7.1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.7.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.6.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.5.1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.5.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.4.1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.4.0 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.3.3 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.3.2 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.3.1 app/services/hyrax/workflow/changes_required_notification.rb
hyrax-2.3.0 app/services/hyrax/workflow/changes_required_notification.rb