diff options
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 4 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 8ffb397f28..eebe3c5bcb 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -162,8 +162,8 @@ module Rails end end - def gemfile_gems - @gemfile_gems ||= [ + def gemfile_entries + @gemfile_entries ||= [ rails_gemfile_entry, database_gemfile_entry, assets_gemfile_entry, diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index 99e46c20d5..b2e45580c5 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile @@ -1,6 +1,6 @@ source 'https://rubygems.org' -<% max_width = gemfile_gems.map { |g| g.name.length }.max -%> +<% max_width = gemfile_entries.map { |g| g.name.length }.max -%> <% gemfile_gems.each do |gem| -%> <% if gem.comment -%> |