diff options
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index b2e45580c5..21dcba7947 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/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| |