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-15.0.1 lib/active_fedora/pathing.rb
active-fedora-15.0.0 lib/active_fedora/pathing.rb
active-fedora-14.0.1 lib/active_fedora/pathing.rb
active-fedora-14.0.0 lib/active_fedora/pathing.rb
active-fedora-13.3.0 lib/active_fedora/pathing.rb
active-fedora-12.2.4 lib/active_fedora/pathing.rb
active-fedora-13.2.7 lib/active_fedora/pathing.rb
active-fedora-13.2.5 lib/active_fedora/pathing.rb
active-fedora-13.2.4 lib/active_fedora/pathing.rb
active-fedora-12.2.3 lib/active_fedora/pathing.rb
active-fedora-13.2.3 lib/active_fedora/pathing.rb
active-fedora-13.2.2 lib/active_fedora/pathing.rb
active-fedora-13.2.0 lib/active_fedora/pathing.rb
active-fedora-13.1.3 lib/active_fedora/pathing.rb
active-fedora-11.5.6 lib/active_fedora/pathing.rb
active-fedora-12.2.2 lib/active_fedora/pathing.rb
active-fedora-11.2.1 lib/active_fedora/pathing.rb
active-fedora-12.2.1 lib/active_fedora/pathing.rb
active-fedora-12.0.3 lib/active_fedora/pathing.rb
active-fedora-11.5.5 lib/active_fedora/pathing.rb