Prevent `ActiveSupport::Duration.build(string)` comparison bug
#37013

alexeiemam wants to merge alexeiemam:issue-37012 into rails:master

We do not currently have an analysis of these two commits