Changed partial rendering to allow collections which don't implement `#to_ary`.
#25912

stevenharman wants to merge stevenharman:fix_render_partial_collection_to_allow_custom_collection into rails:master

We do not currently have an analysis of these two commits