require 'active_support/core_ext/infinite_comparable' class Date include InfiniteComparable end