aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2012-06-05 07:10:57 +0900
committerAkira Matsuda <ronnie@dio.jp>2012-06-06 23:33:31 +0900
commitef9bbb87e8228940f768580a7d05d5feadec0d1e (patch)
tree0748fc74fcd2ec17c55b385db5920901f90839b0 /railties/lib/rails
parent2635a29fec043076427d9fd19c330d2bcf7ab55d (diff)
downloadrails-ef9bbb87e8228940f768580a7d05d5feadec0d1e.tar.gz
rails-ef9bbb87e8228940f768580a7d05d5feadec0d1e.tar.bz2
rails-ef9bbb87e8228940f768580a7d05d5feadec0d1e.zip
reduce number of Strings
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/generators/named_base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb
index fcd289b2dd..b61a5fc69d 100644
--- a/railties/lib/rails/generators/named_base.rb
+++ b/railties/lib/rails/generators/named_base.rb
@@ -135,7 +135,7 @@ module Rails
end
def route_url
- @route_url ||= class_path.collect{|dname| "/" + dname }.join('') + "/" + plural_file_name
+ @route_url ||= class_path.collect {|dname| "/" + dname }.join + "/" + plural_file_name
end
# Tries to retrieve the application name or simple return application.