aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-11-02 16:59:53 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-11-02 16:59:53 +0900
commit7b0b119c500d45b9bc751e5346ad5f316dddcc29 (patch)
treeaadffedfab5f4009dc1e11bb597f098f935b6cfc /railties
parentda23e125f8d755917b08f5cca1f7fe1ff38c8b7e (diff)
downloadrails-7b0b119c500d45b9bc751e5346ad5f316dddcc29.tar.gz
rails-7b0b119c500d45b9bc751e5346ad5f316dddcc29.tar.bz2
rails-7b0b119c500d45b9bc751e5346ad5f316dddcc29.zip
Use tr instead of gsub
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/plugin/plugin_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb
index 80afdcc726..1d968ec8f0 100644
--- a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb
+++ b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb
@@ -283,7 +283,7 @@ task default: :test
end
def namespaced_name
- @namespaced_name ||= name.gsub("-", "/")
+ @namespaced_name ||= name.tr("-", "/")
end
protected