Sha256: 8cd594337854d5bfbf8742d00df2090ada703e30567ada59033a296a766db02f

Contents?: true

Size: 396 Bytes

Versions: 12

Compression:

Stored size: 396 Bytes

Contents

require 'active_fedora/noid'

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 ||= ActiveFedora::Noid::Service.new
      end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyrax-2.0.3 app/services/hyrax/noid.rb
hyrax-2.0.2 app/services/hyrax/noid.rb
hyrax-2.0.1 app/services/hyrax/noid.rb
hyrax-2.0.0 app/services/hyrax/noid.rb
hyrax-2.0.0.rc3 app/services/hyrax/noid.rb
hyrax-2.0.0.rc2 app/services/hyrax/noid.rb
hyrax-2.0.0.rc1 app/services/hyrax/noid.rb
hyrax-2.0.0.beta5 app/services/hyrax/noid.rb
hyrax-2.0.0.beta4 app/services/hyrax/noid.rb
hyrax-2.0.0.beta3 app/services/hyrax/noid.rb
hyrax-2.0.0.beta2 app/services/hyrax/noid.rb
hyrax-2.0.0.beta1 app/services/hyrax/noid.rb