Sha256: 2890789c6393e3f6225c806840ab6d29ee0e975a305c2152b4f1c51ea9f1de02

Contents?: true

Size: 497 Bytes

Versions: 10

Compression:

Stored size: 497 Bytes

Contents

module Hyrax
  module Workflow
    class DepositedNotification < AbstractNotification
      protected

        def subject
          'Deposit has been approved'
        end

        def message
          "#{title} (#{link_to work_id, document_path}) was approved by #{user.user_key}. #{comment}"
        end

      private

        def users_to_notify
          user_key = ActiveFedora::Base.find(work_id).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/deposited_notification.rb
hyrax-1.1.0 app/services/hyrax/workflow/deposited_notification.rb
hyrax-1.0.5 app/services/hyrax/workflow/deposited_notification.rb
hyrax-1.0.4 app/services/hyrax/workflow/deposited_notification.rb
hyrax-1.0.3 app/services/hyrax/workflow/deposited_notification.rb
hyrax-1.0.2 app/services/hyrax/workflow/deposited_notification.rb
hyrax-1.0.1 app/services/hyrax/workflow/deposited_notification.rb
hyrax-1.0.0.rc2 app/services/hyrax/workflow/deposited_notification.rb
hyrax-1.0.0.rc1 app/services/hyrax/workflow/deposited_notification.rb
test_hyrax-0.0.1.alpha app/services/hyrax/workflow/deposited_notification.rb