module ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods

def quoted_primary_key

SQL statements.
Returns a quoted version of the primary key name, used to construct
def quoted_primary_key
  @quoted_primary_key ||= connection.quote_column_name(primary_key)
end