summaryrefslogtreecommitdiff
path: root/lib/date.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/date.rb')
-rw-r--r--lib/date.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date.rb b/lib/date.rb
index 0ae368fb98..c2070760ad 100644
--- a/lib/date.rb
+++ b/lib/date.rb
@@ -1258,7 +1258,7 @@ class DateTime < Date
new_with_hash(elem, sg)
end
- class << self; undef_method :today end
+ class << self; undef_method :today end rescue nil
# Create a new DateTime object representing the current time.
#