Sha256: 408d8522ecf25780a775df59446a57e5ad82e2269582500f45fe1fdfa5e5a607

Contents?: true

Size: 385 Bytes

Versions: 28

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module Noid
    extend ActiveSupport::Concern

    ## This overrides the default behavior, which is to ask Fedora for an id
    # @see ActiveFedora::Persistence.assign_id
    def assign_id
      service.mint if Hyrax.config.enable_noids?
    end

    private

    def service
      @service ||= ::Noid::Rails::Service.new
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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