Sha256: 1d9e9cb7a4743d29365a99a63f68ae6793066179d85e346bf2a6bc160ec11f33

Contents?: true

Size: 402 Bytes

Versions: 87

Compression:

Stored size: 402 Bytes

Contents

module ActiveFedora
  module Pathing
    extend ActiveSupport::Concern

    included do
      def uri_prefix
        nil
      end

      def has_uri_prefix?
        !uri_prefix.nil?
      end

      def root_resource_path
        if has_uri_prefix?
          ActiveFedora.fedora.base_path + "/" + uri_prefix
        else
          ActiveFedora.fedora.base_path
        end
      end
    end
  end
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
active-fedora-9.8.2 lib/active_fedora/pathing.rb
active-fedora-9.8.1 lib/active_fedora/pathing.rb
active-fedora-9.8.0 lib/active_fedora/pathing.rb
active-fedora-9.7.1 lib/active_fedora/pathing.rb
active-fedora-9.7.0 lib/active_fedora/pathing.rb
active-fedora-9.6.2 lib/active_fedora/pathing.rb
active-fedora-9.6.1 lib/active_fedora/pathing.rb