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”]



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

def to_key
  id && [id]
end