Skip to content

Commit f963d4a

Browse files
authored
Merge pull request rails#50487 from nubinary/fix/unneccesary-readonly-attributes-to-a
Remove unnecessary to_a conversion for readonly_attributes method call
2 parents 35e3ff3 + 1278088 commit f963d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/insert_all.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def to_sql
198198

199199

200200
def readonly_columns
201-
primary_keys + model.readonly_attributes.to_a
201+
primary_keys + model.readonly_attributes
202202
end
203203

204204
def unique_by_columns

0 commit comments

Comments
 (0)