diff options
author | Akira Matsuda <ronnie@dio.jp> | 2012-06-01 22:51:15 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2012-06-01 23:13:08 +0900 |
commit | 8984bc2b7b11f52a04318c06b7c26000f82dd38c (patch) | |
tree | e8d24408849907100ba645ec206e9551f7890272 /railties | |
parent | b57fa0bf690b299ba4d8a0051bf06b9cecd3975a (diff) | |
download | rails-8984bc2b7b11f52a04318c06b7c26000f82dd38c.tar.gz rails-8984bc2b7b11f52a04318c06b7c26000f82dd38c.tar.bz2 rails-8984bc2b7b11f52a04318c06b7c26000f82dd38c.zip |
remove unneeded blank line from !namespeced? controller generators
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/controller/templates/controller.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/controller/templates/controller.rb b/railties/lib/rails/generators/rails/controller/templates/controller.rb index ece6bbba3b..4053113b4b 100644 --- a/railties/lib/rails/generators/rails/controller/templates/controller.rb +++ b/railties/lib/rails/generators/rails/controller/templates/controller.rb @@ -1,7 +1,7 @@ <% if namespaced? -%> require_dependency "<%= namespaced_file_path %>/application_controller" -<% end -%> +<% end -%> <% module_namespacing do -%> class <%= class_name %>Controller < ApplicationController <% actions.each do |action| -%> diff --git a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb index 593c8d85e6..6e4ad38c16 100644 --- a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +++ b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb @@ -1,7 +1,7 @@ <% if namespaced? -%> require_dependency "<%= namespaced_file_path %>/application_controller" -<% end -%> +<% end -%> <% module_namespacing do -%> class <%= controller_class_name %>Controller < ApplicationController # GET <%= route_url %> |