Permalink
Browse files

add comments and fix variable name. oops, forgot to add this. orz!

  • Loading branch information...
tenderlove committed Oct 27, 2013
1 parent f6cf909 commit 79c2d23b93153952c97e7ee44ecece09bb622dbf
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/generators/rails/app/templates/Gemfile
@@ -1,12 +1,12 @@
source 'https://rubygems.org'
<% max_width = gemfile_entries.map { |g| g.name.length }.max -%>
-<% gemfile_gems.each do |gem| -%>
+<% gemfile_entries.each do |gem| -%>
<% if gem.comment -%>
# <%= gem.comment %>
<% end -%>
-gem '<%= gem.name %>'<% if gem.version -%>
+<%= gem.commented_out ? '# ' : '' %>gem '<%= gem.name %>'<% if gem.version -%>
, '<%= gem.version %>'
<% elsif gem.options.any? -%>
,<%= gem.padding(max_width) %><%= gem.options.map { |k,v|

0 comments on commit 79c2d23

Please sign in to comment.