Merge pull request #3542 from amatsuda/controller_generator_remove_blank_line

Remove redundant blank line at the bottom of generated controller code
This commit is contained in:
José Valim
2011-11-07 01:56:03 -08:00

View File

@@ -3,7 +3,7 @@ class <%= class_name %>Controller < ApplicationController
<% actions.each do |action| -%>
def <%= action %>
end
<%= "\n" unless action == actions.last -%>
<% end -%>
end
<% end -%>