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...
2 parents b454601 + 42cf5eb commit 1a8df8aa883ebb5fbe4f74ec30e96f558b5a3521 @josevalim josevalim committed Nov 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/rails/controller/templates/controller.rb
View
2 railties/lib/rails/generators/rails/controller/templates/controller.rb
@@ -3,7 +3,7 @@ class <%= class_name %>Controller < ApplicationController
<% actions.each do |action| -%>
def <%= action %>
end
-
+<%= "\n" unless action == actions.last -%>
<% end -%>
end
<% end -%>

0 comments on commit 1a8df8a

Please sign in to comment.