diff options
author | George Claghorn <george.claghorn@gmail.com> | 2018-05-24 19:00:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 19:00:09 -0400 |
commit | cd4a88123dc17462d5c2ff29172b0366bca14e0e (patch) | |
tree | dd5bdbb7698f9063c28f38c6207b7559bda38bd8 /activesupport | |
parent | f6ae74ca95aa731a325ce13d7da97c200d4c3b0f (diff) | |
parent | a2a3fa8d7df0a79145c93dd21a10104053554499 (diff) | |
download | rails-cd4a88123dc17462d5c2ff29172b0366bca14e0e.tar.gz rails-cd4a88123dc17462d5c2ff29172b0366bca14e0e.tar.bz2 rails-cd4a88123dc17462d5c2ff29172b0366bca14e0e.zip |
Merge pull request #32982 from ruralocity/update-dateandtime-calculations-docs
Improve grammar for DateAndTime before? and after? calculations [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/date_and_time/calculations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb b/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb index de13f00e60..976a10d0f5 100644 --- a/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb @@ -60,12 +60,12 @@ module DateAndTime !WEEKEND_DAYS.include?(wday) end - # Returns true if the date/time before <tt>date_or_time</tt>. + # Returns true if the date/time falls before <tt>date_or_time</tt>. def before?(date_or_time) self < date_or_time end - # Returns true if the date/time after <tt>date_or_time</tt>. + # Returns true if the date/time falls after <tt>date_or_time</tt>. def after?(date_or_time) self > date_or_time end |