1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Improve grammar for DateAndTime before? and after? calculations [ci skip]

This commit is contained in:
Aaron Sumner 2018-05-24 15:39:37 -07:00
parent c31317bd16
commit a2a3fa8d7d

View file

@ -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