From 127808841b85d8f15a88ee89c40ba20e18c019ec Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 29 Dec 2023 23:00:17 -0500 Subject: [PATCH] Remove unnecessary to_a conversion for readonly_attributes method call --- activerecord/lib/active_record/insert_all.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/insert_all.rb b/activerecord/lib/active_record/insert_all.rb index 1b84f3d3015..19c4ad7309b 100644 --- a/activerecord/lib/active_record/insert_all.rb +++ b/activerecord/lib/active_record/insert_all.rb @@ -198,7 +198,7 @@ module ActiveRecord def readonly_columns - primary_keys + model.readonly_attributes.to_a + primary_keys + model.readonly_attributes end def unique_by_columns