aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorAnnie-Claude Côté <hello@annie.codes>2018-05-16 15:48:12 -0400
committerAnnie-Claude Côté <hello@annie.codes>2018-05-16 15:48:12 -0400
commit35bf8e90b18954fb1ebf2b4a03a123e04634b064 (patch)
tree474a9d2ab827b1197b8c725fb4734acae9a9dd9e /activemodel/lib
parent268dd6966ddc6f66bf09fb96046bd435e0515b6e (diff)
downloadrails-35bf8e90b18954fb1ebf2b4a03a123e04634b064.tar.gz
rails-35bf8e90b18954fb1ebf2b4a03a123e04634b064.tar.bz2
rails-35bf8e90b18954fb1ebf2b4a03a123e04634b064.zip
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.
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/type/helpers/time_value.rb1
1 files changed, 1 insertions, 0 deletions
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