Sha256: d31b7b348feb4649080162b3bf2f9bce52a8789fb78a21624a4f106df7d03d1a

Contents?: true

Size: 458 Bytes

Versions: 29

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  class BatchCreateFailureService < AbstractMessageService
    attr_reader :user, :messages
    def initialize(user, messages)
      @user = user
      @messages = messages.to_sentence
    end

    def message
      I18n.t('hyrax.notifications.batch_create_failure.message', user: user, messages: messages)
    end

    def subject
      I18n.t('hyrax.notifications.batch_create_failure.subject')
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/services/hyrax/batch_create_failure_service.rb
hyrax-5.0.4 app/services/hyrax/batch_create_failure_service.rb
hyrax-5.0.3 app/services/hyrax/batch_create_failure_service.rb
hyrax-5.0.2 app/services/hyrax/batch_create_failure_service.rb
hyrax-5.0.1 app/services/hyrax/batch_create_failure_service.rb
hyrax-5.0.0 app/services/hyrax/batch_create_failure_service.rb
hyrax-5.0.0.rc3 app/services/hyrax/batch_create_failure_service.rb
hyrax-5.0.0.rc2 app/services/hyrax/batch_create_failure_service.rb
hyrax-5.0.0.rc1 app/services/hyrax/batch_create_failure_service.rb
hyrax-3.6.0 app/services/hyrax/batch_create_failure_service.rb
hyrax-4.0.0 app/services/hyrax/batch_create_failure_service.rb
hyrax-4.0.0.rc3 app/services/hyrax/batch_create_failure_service.rb
hyrax-4.0.0.rc2 app/services/hyrax/batch_create_failure_service.rb
hyrax-4.0.0.rc1 app/services/hyrax/batch_create_failure_service.rb
hyrax-3.5.0 app/services/hyrax/batch_create_failure_service.rb
hyrax-4.0.0.beta2 app/services/hyrax/batch_create_failure_service.rb
hyrax-3.4.2 app/services/hyrax/batch_create_failure_service.rb
hyrax-4.0.0.beta1 app/services/hyrax/batch_create_failure_service.rb
hyrax-3.4.1 app/services/hyrax/batch_create_failure_service.rb
hyrax-3.4.0 app/services/hyrax/batch_create_failure_service.rb