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-10.1.0 lib/active_fedora/pathing.rb
active-fedora-10.1.0.rc1 lib/active_fedora/pathing.rb
active-fedora-9.7.2 lib/active_fedora/pathing.rb
active-fedora-10.0.0 lib/active_fedora/pathing.rb
active-fedora-10.0.0.beta4 lib/active_fedora/pathing.rb
active-fedora-10.0.0.beta3 lib/active_fedora/pathing.rb
active-fedora-10.0.0.beta2 lib/active_fedora/pathing.rb
active-fedora-10.0.0.beta1 lib/active_fedora/pathing.rb
active-fedora-9.13.0 lib/active_fedora/pathing.rb
active-fedora-9.12.0 lib/active_fedora/pathing.rb
active-fedora-9.11.0 lib/active_fedora/pathing.rb
active-fedora-9.10.4 lib/active_fedora/pathing.rb
active-fedora-9.10.3 lib/active_fedora/pathing.rb
active-fedora-9.10.2 lib/active_fedora/pathing.rb
active-fedora-9.10.1 lib/active_fedora/pathing.rb
active-fedora-9.10.0 lib/active_fedora/pathing.rb
active-fedora-9.10.0.pre2 lib/active_fedora/pathing.rb
active-fedora-9.10.0.pre1 lib/active_fedora/pathing.rb
active-fedora-9.9.1 lib/active_fedora/pathing.rb
active-fedora-9.9.0 lib/active_fedora/pathing.rb