rails/rails — pull request #12220 by wenchaojiang (2013-09-13 12:17:02+00:00)
Title: Make equalites between Numeric and Duration consistent.

i.e.
1.seconds == 1 # true
1 == 1.seconds # true

Currently on master, it is
1.seconds == 1 # true
1 == 1.seconds # false
Intuitively, equality should be keep same if we swap two sides.