Sha256: ecb1e5bdc163331a80dfc51b17ec4893236f4cbeab23287053c663aa4c53b6ae

Contents?: true

Size: 361 Bytes

Versions: 36

Compression:

Stored size: 361 Bytes

Contents

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

36 entries across 36 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/services/hyrax/noid.rb
hyrax-2.9.5 app/services/hyrax/noid.rb
hyrax-2.9.4 app/services/hyrax/noid.rb
hyrax-2.9.3 app/services/hyrax/noid.rb
hyrax-2.9.2 app/services/hyrax/noid.rb
hyrax-2.9.1 app/services/hyrax/noid.rb
hyrax-2.9.0 app/services/hyrax/noid.rb
hyrax-2.8.0 app/services/hyrax/noid.rb
hyrax-2.7.2 app/services/hyrax/noid.rb
hyrax-2.7.1 app/services/hyrax/noid.rb
hyrax-2.7.0 app/services/hyrax/noid.rb
hyrax-2.6.0 app/services/hyrax/noid.rb
hyrax-3.0.0.pre.rc1 app/services/hyrax/noid.rb
hyrax-3.0.0.pre.beta3 app/services/hyrax/noid.rb
hyrax-2.5.1 app/services/hyrax/noid.rb
hyrax-2.5.0 app/services/hyrax/noid.rb
hyrax-3.0.0.pre.beta2 app/services/hyrax/noid.rb
hyrax-2.4.1 app/services/hyrax/noid.rb
hyrax-3.0.0.pre.beta1 app/services/hyrax/noid.rb
hyrax-2.4.0 app/services/hyrax/noid.rb