aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAaron Sumner <asumner@oreilly.com>2018-05-24 15:39:37 -0700
committerAaron Sumner <asumner@oreilly.com>2018-05-24 15:42:08 -0700
commita2a3fa8d7df0a79145c93dd21a10104053554499 (patch)
tree49aa3622473db281e4261195879c69e667793883 /activesupport
parentc31317bd16f14c868f7a3ffea9eee120880a7a4d (diff)
downloadrails-a2a3fa8d7df0a79145c93dd21a10104053554499.tar.gz
rails-a2a3fa8d7df0a79145c93dd21a10104053554499.tar.bz2
rails-a2a3fa8d7df0a79145c93dd21a10104053554499.zip
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.rb4
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