Skip to content

Commit

Permalink
Merge pull request #50487 from nubinary/fix/unneccesary-readonly-attr…
Browse files Browse the repository at this point in the history
…ibutes-to-a

Remove unnecessary to_a conversion for readonly_attributes method call
  • Loading branch information
kamipo committed Apr 30, 2024
2 parents 35e3ff3 + 1278088 commit f963d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/insert_all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def to_sql


def readonly_columns
primary_keys + model.readonly_attributes.to_a
primary_keys + model.readonly_attributes
end

def unique_by_columns
Expand Down

0 comments on commit f963d4a

Please sign in to comment.