diff options
author | José Valim <jose.valim@gmail.com> | 2011-11-07 01:56:03 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-11-07 01:56:03 -0800 |
commit | 1a8df8aa883ebb5fbe4f74ec30e96f558b5a3521 (patch) | |
tree | b4fd7f4262ca7d4b9b8d07fb8d348d046a032320 /railties/lib | |
parent | b454601be403bd58af4a93b459f98ff4e2d211ea (diff) | |
parent | 42cf5eba260f97e6da0ef66b954d95b9e7c2b102 (diff) | |
download | rails-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
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/controller/templates/controller.rb | 2 |
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 -%> |