File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
activerecord/lib/active_record/attribute_methods Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def composite_primary_key? # :nodoc:
90
90
# Returns a quoted version of the primary key name, used to construct
91
91
# SQL statements.
92
92
def quoted_primary_key
93
- @quoted_primary_key ||= adapter_class . quote_column_name ( primary_key )
93
+ adapter_class . quote_column_name ( primary_key )
94
94
end
95
95
96
96
def reset_primary_key # :nodoc:
@@ -136,7 +136,6 @@ def primary_key=(value)
136
136
elsif value
137
137
-value . to_s
138
138
end
139
- @quoted_primary_key = nil
140
139
@attributes_builder = nil
141
140
end
142
141
@@ -146,7 +145,6 @@ def inherited(base)
146
145
base . class_eval do
147
146
@primary_key = PRIMARY_KEY_NOT_SET
148
147
@composite_primary_key = false
149
- @quoted_primary_key = nil
150
148
@attributes_builder = nil
151
149
end
152
150
end
You can’t perform that action at this time.
0 commit comments