# File lib/active_record/attribute_methods/primary_key.rb, line 7 def to_key key = self.id [key] if key end