Sha256: 8997a062b096c28ebb0df8866591484c0a2dce5552d775377a1df019df7c8f4e

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

module Sufia
  module Workflow
    class DepositedNotification < AbstractNotification
      protected

        def subject
          'Deposit has been approved'
        end

        def message
          "#{title} (#{work_id}) 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

2 entries across 2 versions & 1 rubygems

Version Path
sufia-7.3.0.rc3 app/services/sufia/workflow/deposited_notification.rb
sufia-7.3.0.rc2 app/services/sufia/workflow/deposited_notification.rb