Skip to content

Commit 1278088

Browse files
author
JP Rosevear
committed
Remove unnecessary to_a conversion for readonly_attributes method call
1 parent 36b7c1d commit 1278088

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)