diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-07 12:07:56 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-07 12:07:56 -0300 |
commit | fbfc4ac298fe96ee8f57291143f0308f4b37b941 (patch) | |
tree | a972026d0570c5f32be86881a45b8726f1082307 /activesupport/lib | |
parent | 3dc9c52ca9738b5c582e9aab6fb459d77d7dec2c (diff) | |
parent | 8764ef95dce3cbd0a58186e3cc1da90cc07862eb (diff) | |
download | rails-fbfc4ac298fe96ee8f57291143f0308f4b37b941.tar.gz rails-fbfc4ac298fe96ee8f57291143f0308f4b37b941.tar.bz2 rails-fbfc4ac298fe96ee8f57291143f0308f4b37b941.zip |
Merge pull request #17146 from divineforest/active-record-gsub-to-tr
Change `gsub` to `tr` where possible
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/values/time_zone.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/values/time_zone.rb b/activesupport/lib/active_support/values/time_zone.rb index 49dfee96ec..55533a5d40 100644 --- a/activesupport/lib/active_support/values/time_zone.rb +++ b/activesupport/lib/active_support/values/time_zone.rb @@ -184,7 +184,7 @@ module ActiveSupport } UTC_OFFSET_WITH_COLON = '%s%02d:%02d' - UTC_OFFSET_WITHOUT_COLON = UTC_OFFSET_WITH_COLON.sub(':', '') + UTC_OFFSET_WITHOUT_COLON = UTC_OFFSET_WITH_COLON.tr(':', '') @lazy_zones_map = ThreadSafe::Cache.new |