Permalink
Browse files

Merge pull request #32982 from ruralocity/update-dateandtime-calculat…

…ions-docs

Improve grammar for DateAndTime before? and after? calculations [ci skip]
  • Loading branch information...
georgeclaghorn committed May 24, 2018
2 parents f6ae74c + a2a3fa8 commit cd4a88123dc17462d5c2ff29172b0366bca14e0e
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/date_and_time/calculations.rb
@@ -60,12 +60,12 @@ def on_weekday?
!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

0 comments on commit cd4a881

Please sign in to comment.