aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2012-06-01 22:51:15 +0900
committerAkira Matsuda <ronnie@dio.jp>2012-06-01 22:51:15 +0900
commitec106e9d439a9ec48dc9268d8eca0f3595aa7cb9 (patch)
tree70a9eacb428cf16d577dbb5f242a219693853782
parent070454c6f777abb8c70970bfb07975cedc340f00 (diff)
downloadrails-ec106e9d439a9ec48dc9268d8eca0f3595aa7cb9.tar.gz
rails-ec106e9d439a9ec48dc9268d8eca0f3595aa7cb9.tar.bz2
rails-ec106e9d439a9ec48dc9268d8eca0f3595aa7cb9.zip
remove unneeded blank line from !namespeced? controller generators
-rw-r--r--railties/lib/rails/generators/rails/controller/templates/controller.rb2
-rw-r--r--railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb2
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 0294bde582..b3e74f9b02 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 %>