Permalink
Browse files

remove unneeded blank line from !namespeced? controller generators

  • Loading branch information...
1 parent 070454c commit ec106e9d439a9ec48dc9268d8eca0f3595aa7cb9 @amatsuda committed Jun 1, 2012
View
2 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| -%>
View
2 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 %>

0 comments on commit ec106e9

Please sign in to comment.