Skip to content
This repository
Browse code

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
@@ -3,7 +3,7 @@ class <%= class_name %>Controller < ApplicationController
3 3 <% actions.each do |action| -%>
4 4 def <%= action %>
5 5 end
6   -
  6 +<%= "\n" unless action == actions.last -%>
7 7 <% end -%>
8 8 end
9 9 <% end -%>

0 comments on commit 1a8df8a

Please sign in to comment.
Something went wrong with that request. Please try again.