mirror of https://github.com/rails/rails
Ruby 2.7.2 still have the same bug
This commit is contained in:
parent
0b72dd37c1
commit
36fe7b8d8f
|
@ -116,7 +116,7 @@ class Time
|
|||
|
||||
# Restricted Ruby version due to a bug in `Time#ceil`
|
||||
# See https://bugs.ruby-lang.org/issues/17025 for more details
|
||||
if RUBY_VERSION <= "2.7.1"
|
||||
if RUBY_VERSION <= "2.8"
|
||||
remove_possible_method :ceil
|
||||
def ceil(precision = 0)
|
||||
change(nsec: 0) + subsec.ceil(precision)
|
||||
|
|
Loading…
Reference in New Issue