aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/infinite_comparable.rb
Commit message (Collapse)AuthorAgeFilesLines
* Require 'active_support/core_ext/module/aliasing' in the infinite_comparable ↵Diogo Mafra2013-01-061-0/+1
| | | | module
* Refactor infinite comparable definition a bitCarlos Antonio da Silva2013-01-041-15/+19
|
* Added ability to compare date/time with infinitybUg2013-01-041-0/+30
Date, DateTime, Time and TimeWithZone can now be compared to infinity, so it's now possible to create ranges with one infinite bound and date/time object as another bound. Ex.: @range = Range.new(Date.today, Float::INFINITY) Also it's possible to check inclusion of date/time in range with conversion. Ex.: @range.include?(Time.now + 1.year) # => true @range.include?(DateTime.now + 1.year) # => true Ability to create date/time ranges with infinite bound is required for handling postgresql range types.