Returns this record’s primary key value wrapped in an Array or nil if the record is not persisted? or has just been destroyed.
# File lib/active_record/attribute_methods/primary_key.rb, line 8 8: def to_key 9: key = send(self.class.primary_key) 10: [key] if key 11: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.