diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-27 16:44:01 -0300 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-27 16:44:01 -0300 |
commit | 79c2d23b93153952c97e7ee44ecece09bb622dbf (patch) | |
tree | 00c29a32aefcac2657f15bace2b95bc8e2fcfb66 /railties/lib | |
parent | f6cf909476c032524ed7c404ee7c0fb270d39d58 (diff) | |
download | rails-79c2d23b93153952c97e7ee44ecece09bb622dbf.tar.gz rails-79c2d23b93153952c97e7ee44ecece09bb622dbf.tar.bz2 rails-79c2d23b93153952c97e7ee44ecece09bb622dbf.zip |
add comments and fix variable name. oops, forgot to add this. orz!
Diffstat (limited to 'railties/lib')
-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| |