diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-11-02 16:59:53 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-11-02 16:59:53 +0900 |
commit | 7b0b119c500d45b9bc751e5346ad5f316dddcc29 (patch) | |
tree | aadffedfab5f4009dc1e11bb597f098f935b6cfc /railties/lib/rails/generators/rails | |
parent | da23e125f8d755917b08f5cca1f7fe1ff38c8b7e (diff) | |
download | rails-7b0b119c500d45b9bc751e5346ad5f316dddcc29.tar.gz rails-7b0b119c500d45b9bc751e5346ad5f316dddcc29.tar.bz2 rails-7b0b119c500d45b9bc751e5346ad5f316dddcc29.zip |
Use tr instead of gsub
Diffstat (limited to 'railties/lib/rails/generators/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/plugin_generator.rb | 2 |
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 |