Sha256: 1c7d7ef62b2f83a289f32df4f914d47d2ec1afa490e2f6dfa3cb09c0091e729c

Contents?: true

Size: 194 Bytes

Versions: 87

Compression:

Stored size: 194 Bytes

Contents

module ActiveFedora
  module Attributes
    module PrimaryKey
      # If the id is "/foo:1" then to_key ought to return ["foo:1"]
      def to_key
        id && [id]
      end
    end
  end
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
active-fedora-15.0.1 lib/active_fedora/attributes/primary_key.rb
active-fedora-15.0.0 lib/active_fedora/attributes/primary_key.rb
active-fedora-14.0.1 lib/active_fedora/attributes/primary_key.rb
active-fedora-14.0.0 lib/active_fedora/attributes/primary_key.rb
active-fedora-13.3.0 lib/active_fedora/attributes/primary_key.rb
active-fedora-12.2.4 lib/active_fedora/attributes/primary_key.rb
active-fedora-13.2.7 lib/active_fedora/attributes/primary_key.rb
active-fedora-13.2.5 lib/active_fedora/attributes/primary_key.rb
active-fedora-13.2.4 lib/active_fedora/attributes/primary_key.rb
active-fedora-12.2.3 lib/active_fedora/attributes/primary_key.rb
active-fedora-13.2.3 lib/active_fedora/attributes/primary_key.rb
active-fedora-13.2.2 lib/active_fedora/attributes/primary_key.rb
active-fedora-13.2.0 lib/active_fedora/attributes/primary_key.rb
active-fedora-13.1.3 lib/active_fedora/attributes/primary_key.rb
active-fedora-11.5.6 lib/active_fedora/attributes/primary_key.rb
active-fedora-12.2.2 lib/active_fedora/attributes/primary_key.rb
active-fedora-11.2.1 lib/active_fedora/attributes/primary_key.rb
active-fedora-12.2.1 lib/active_fedora/attributes/primary_key.rb
active-fedora-12.0.3 lib/active_fedora/attributes/primary_key.rb
active-fedora-11.5.5 lib/active_fedora/attributes/primary_key.rb