aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-07 12:07:56 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-07 12:07:56 -0300
commitfbfc4ac298fe96ee8f57291143f0308f4b37b941 (patch)
treea972026d0570c5f32be86881a45b8726f1082307 /activesupport
parent3dc9c52ca9738b5c582e9aab6fb459d77d7dec2c (diff)
parent8764ef95dce3cbd0a58186e3cc1da90cc07862eb (diff)
downloadrails-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')
-rw-r--r--activesupport/lib/active_support/values/time_zone.rb2
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