Sha256: 2a3fb2a0e4987333f919cad01354f1d933c51e599bcafe38190dfd73453f9ebf

Contents?: true

Size: 434 Bytes

Versions: 10

Compression:

Stored size: 434 Bytes

Contents

module Hyrax
  class ImportUrlSuccessService < MessageUserService
    def call
      FileSetAttachedEventJob.perform_later(file_set, user)
      super
    end

    def message
      "The file (#{file_set.label}) was successfully imported and attached to #{curation_concern.title.first}."
    end

    def subject
      'File Import'
    end

    private

      def curation_concern
        file_set.in_works.first
      end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

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