class ActiveFedora::Core::FedoraUriTranslator
Constants
- SLASH
Public Class Methods
call(uri)
click to toggle source
# File lib/active_fedora/core/fedora_uri_translator.rb, line 4 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