From 35bf8e90b18954fb1ebf2b4a03a123e04634b064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Annie-Claude=20C=C3=B4t=C3=A9?= Date: Wed, 16 May 2018 15:48:12 -0400 Subject: Add missing require for string to timezone conversion Inside user_input_in_time_zone we call in_time_zone on the value and value can be a String. --- activemodel/lib/active_model/type/helpers/time_value.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activemodel/lib/active_model/type/helpers/time_value.rb b/activemodel/lib/active_model/type/helpers/time_value.rb index 250c4021c6..cb6aa67a9d 100644 --- a/activemodel/lib/active_model/type/helpers/time_value.rb +++ b/activemodel/lib/active_model/type/helpers/time_value.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "active_support/core_ext/string/zones" require "active_support/core_ext/time/zones" module ActiveModel -- cgit v1.2.3