Skip to content

Commit 36fe7b8

Browse files
committed
Ruby 2.7.2 still have the same bug
1 parent 0b72dd3 commit 36fe7b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/lib/active_support/core_ext/time/calculations.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def floor(precision = 0)
116116

117117
# Restricted Ruby version due to a bug in `Time#ceil`
118118
# See https://bugs.ruby-lang.org/issues/17025 for more details
119-
if RUBY_VERSION <= "2.7.1"
119+
if RUBY_VERSION <= "2.8"
120120
remove_possible_method :ceil
121121
def ceil(precision = 0)
122122
change(nsec: 0) + subsec.ceil(precision)

0 commit comments

Comments
 (0)