aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-11-07 01:56:03 -0800
committerJosé Valim <jose.valim@gmail.com>2011-11-07 01:56:03 -0800
commit1a8df8aa883ebb5fbe4f74ec30e96f558b5a3521 (patch)
treeb4fd7f4262ca7d4b9b8d07fb8d348d046a032320
parentb454601be403bd58af4a93b459f98ff4e2d211ea (diff)
parent42cf5eba260f97e6da0ef66b954d95b9e7c2b102 (diff)
downloadrails-1a8df8aa883ebb5fbe4f74ec30e96f558b5a3521.tar.gz
rails-1a8df8aa883ebb5fbe4f74ec30e96f558b5a3521.tar.bz2
rails-1a8df8aa883ebb5fbe4f74ec30e96f558b5a3521.zip
Merge pull request #3542 from amatsuda/controller_generator_remove_blank_line
Remove redundant blank line at the bottom of generated controller code
-rw-r--r--railties/lib/rails/generators/rails/controller/templates/controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/controller/templates/controller.rb b/railties/lib/rails/generators/rails/controller/templates/controller.rb
index 8f5f78556f..52243f4a2f 100644
--- a/railties/lib/rails/generators/rails/controller/templates/controller.rb
+++ b/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 -%>