# File lib/active_record/base.rb, line 1514 def id attr_name = self.class.primary_key column = column_for_attribute(attr_name) define_read_method(:id, attr_name, column) if self.class.generate_read_methods read_attribute(attr_name) end