Sha256: 44ae7d95f4208acbe7cf91577e582e861eccdc8d4b40b9eadda090a6747d966e

Contents?: true

Size: 408 Bytes

Versions: 10

Compression:

Stored size: 408 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 + "/" + self.uri_prefix
        else
          ActiveFedora.fedora.base_path
        end
      end
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
active-fedora-9.5.0 lib/active_fedora/pathing.rb
active-fedora-9.4.3 lib/active_fedora/pathing.rb
active-fedora-9.4.2 lib/active_fedora/pathing.rb
active-fedora-9.4.1 lib/active_fedora/pathing.rb
active-fedora-9.4.0 lib/active_fedora/pathing.rb
active-fedora-9.3.0 lib/active_fedora/pathing.rb
active-fedora-9.2.1 lib/active_fedora/pathing.rb
active-fedora-9.2.0 lib/active_fedora/pathing.rb
active-fedora-9.2.0.rc2 lib/active_fedora/pathing.rb
active-fedora-9.2.0.rc1 lib/active_fedora/pathing.rb