diff options
author | Go MAEDA <maeda@farend.jp> | 2018-08-12 23:40:44 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-08-12 23:40:44 +0000 |
commit | b7f15fbadcaed2b708aa156048ab5c37cb7b01ff (patch) | |
tree | c87103a67f1cf7ec2c2ceb3aa441c5525493b8f8 /app/helpers | |
parent | 02191a08fdd2b4267167230525dfbe676d751ce9 (diff) | |
download | redmine-b7f15fbadcaed2b708aa156048ab5c37cb7b01ff.tar.gz redmine-b7f15fbadcaed2b708aa156048ab5c37cb7b01ff.zip |
Replace String#gsub with faster String#tr (#29363).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17469 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b7d838034..58b988454 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -512,7 +512,7 @@ module ApplicationHelper end def anchor(text) - text.to_s.gsub(' ', '_') + text.to_s.tr(' ', '_') end def html_hours(text) |