only cache the primary key column in one place
This commit is contained in:
parent
cbff6ee180
commit
bf966ad8ee
@ -226,7 +226,7 @@ def type
|
||||
end
|
||||
|
||||
def primary_key_column
|
||||
@primary_key_column ||= klass.columns.find { |c| c.name == klass.primary_key }
|
||||
klass.columns_hash[klass.primary_key]
|
||||
end
|
||||
|
||||
def association_foreign_key
|
||||
|
Loading…
Reference in New Issue
Block a user