diff options
author | Nick Holden <nick.r.holden@gmail.com> | 2018-03-06 20:42:49 -0800 |
---|---|---|
committer | Nick Holden <nick.r.holden@gmail.com> | 2018-03-06 20:42:49 -0800 |
commit | 20fa0d92c36681f6cffc715e08c299ff942352f4 (patch) | |
tree | 16c284564bb661a58694bed695b41e9d312bf2cb /activerecord/lib/active_record/connection_handling.rb | |
parent | b5aa0266d0a4d5f7a02eb31df730fa172d1a845a (diff) | |
download | rails-20fa0d92c36681f6cffc715e08c299ff942352f4.tar.gz rails-20fa0d92c36681f6cffc715e08c299ff942352f4.tar.bz2 rails-20fa0d92c36681f6cffc715e08c299ff942352f4.zip |
Add `before?` and `after?` methods to date and time classes
Equality comparisons between dates and times can take some extra time to
comprehend. I tend to think of a date or time as "before" or "after"
another date or time, but I naturally read `<` and `>` as "less than"
and "greater than." This change seeks to make date/time comparisons more
human readable.
Diffstat (limited to 'activerecord/lib/active_record/connection_handling.rb')
0 files changed, 0 insertions, 0 deletions