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:
parent
c31317bd16
commit
a2a3fa8d7d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue