Skip to content

Commit 0f6215a

Browse files
committed
Remove superflous check
We don't need this check, we just need the `id.first.is_a?(Array)` check.
1 parent d4377aa commit 0f6215a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/persistence.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def composite_query_constraints_list # :nodoc:
527527
# Todo.destroy(todos)
528528
def destroy(id)
529529
multiple_ids = if composite_primary_key?
530-
id.is_a?(Array) && id.first.is_a?(Array)
530+
id.first.is_a?(Array)
531531
else
532532
id.is_a?(Array)
533533
end

0 commit comments

Comments
 (0)