Sha256: 1b7682edc71a072cea8fb669e21cf230d879027459ca1d9a691a6c2867a6b9bc

Contents?: true

Size: 249 Bytes

Versions: 102

Compression:

Stored size: 249 Bytes

Contents

module ActiveFedora::Core
  class FedoraUriTranslator
    SLASH = '/'.freeze
    def self.call(uri)
      id = uri.to_s.sub(ActiveFedora.fedora.host + ActiveFedora.fedora.base_path, '')
      id.start_with?(SLASH) ? id[1..-1] : id
    end
  end
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
active-fedora-9.1.0 lib/active_fedora/core/fedora_uri_translator.rb
active-fedora-9.1.0.rc1 lib/active_fedora/core/fedora_uri_translator.rb