diff options
author | Akira Matsuda <ronnie@dio.jp> | 2019-07-29 14:05:18 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2019-07-29 14:17:36 +0900 |
commit | 8f90ac7827787a84b38055e1011ef9aedd89fe91 (patch) | |
tree | da113b79ba98d60e5c4ee0705d03044254c22c84 /activemodel/lib/active_model | |
parent | 381e8cb67abec7d2ceb812fde587d924667de122 (diff) | |
download | rails-8f90ac7827787a84b38055e1011ef9aedd89fe91.tar.gz rails-8f90ac7827787a84b38055e1011ef9aedd89fe91.tar.bz2 rails-8f90ac7827787a84b38055e1011ef9aedd89fe91.zip |
Add AS::TimeZone#match?
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/type/helpers/timezone.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/type/helpers/timezone.rb b/activemodel/lib/active_model/type/helpers/timezone.rb index cf87b9715b..b0477aec32 100644 --- a/activemodel/lib/active_model/type/helpers/timezone.rb +++ b/activemodel/lib/active_model/type/helpers/timezone.rb @@ -7,7 +7,7 @@ module ActiveModel module Helpers # :nodoc: all module Timezone def is_utc? - ::Time.zone_default.nil? || ::Time.zone_default =~ "UTC" + ::Time.zone_default.nil? || ::Time.zone_default.match?("UTC") end def default_timezone |