Module: ActiveFedora::Attributes::PrimaryKey

Defined in:
lib/active_fedora/attributes/primary_key.rb

Instance Method Summary collapse

Instance Method Details

#to_keyObject

If the id is “/foo:1” then to_key ought to return [“foo:1”]



6
7
8
# File 'lib/active_fedora/attributes/primary_key.rb', line 6

def to_key
  id && [id]
end