Module: ActiveFedora::Attributes::PrimaryKey
- Defined in:
 - lib/active_fedora/attributes/primary_key.rb
 
Instance Method Summary collapse
- 
  
    
      #to_key  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
If the id is “/foo:1” then to_key ought to return [“foo:1”].
 
Instance Method Details
#to_key ⇒ Object
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  |