From 8495fcae6eb97f9c3d55c935ce3d507d3ca6e5e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 12 Mar 2020 11:31:27 -0400 Subject: [PATCH] Revert "Merge pull request #38710 from Madogiwa0124/remove_unecessary_require_from_active_support_time" This reverts commit ffdce0187d243c33313457ae1508d63f04322d52, reversing changes made to d2d8b2892dafff70d7ae44d0a5cce5d834fc708e. This change behavior for applications that require core_ext/integer/time since it will not load the numeric extensions anymore. --- activesupport/lib/active_support/core_ext/integer/time.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activesupport/lib/active_support/core_ext/integer/time.rb b/activesupport/lib/active_support/core_ext/integer/time.rb index 548567a867..5efb89cf9f 100644 --- a/activesupport/lib/active_support/core_ext/integer/time.rb +++ b/activesupport/lib/active_support/core_ext/integer/time.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require "active_support/duration" +require "active_support/core_ext/numeric/time" class Integer # Returns a Duration instance matching the number of months provided.