Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3542 from amatsuda/controller_generator_remove_bl…

…ank_line

Remove redundant blank line at the bottom of generated controller code
  • Loading branch information...
commit 1a8df8aa883ebb5fbe4f74ec30e96f558b5a3521 2 parents b454601 + 42cf5eb
José Valim josevalim authored
2  railties/lib/rails/generators/rails/controller/templates/controller.rb
View
@@ -3,7 +3,7 @@ class <%= class_name %>Controller < ApplicationController
<% actions.each do |action| -%>
def <%= action %>
end
-
+<%= "\n" unless action == actions.last -%>
<% end -%>
end
<% end -%>
Please sign in to comment.
Something went wrong with that request. Please try again.