aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorAlexander Balashov <divineforest@gmail.com>2014-10-02 21:16:25 +0400
committerAlexander Balashov <divineforest@gmail.com>2014-10-06 14:03:06 +0400
commit8764ef95dce3cbd0a58186e3cc1da90cc07862eb (patch)
tree2684400d0d867c686e0e72031ee2008a57d36709 /activesupport/lib/active_support
parent7b740f31cc6f88fe20a51eb7da1468082e6fdb5a (diff)
downloadrails-8764ef95dce3cbd0a58186e3cc1da90cc07862eb.tar.gz
rails-8764ef95dce3cbd0a58186e3cc1da90cc07862eb.tar.bz2
rails-8764ef95dce3cbd0a58186e3cc1da90cc07862eb.zip
Change `gsub` to `tr` where possible
Diffstat (limited to 'activesupport/lib/active_support')
-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