diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-27 16:29:46 -0300 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-27 16:29:46 -0300 |
commit | 4c5f03386d848616ca8a7aa497ebc6c977c775b0 (patch) | |
tree | ede2144224601ae145643b85e6dfb908ea991177 /railties/lib | |
parent | 99cea666abf5ccc18485ed0adb8f816c82ed402a (diff) | |
download | rails-4c5f03386d848616ca8a7aa497ebc6c977c775b0.tar.gz rails-4c5f03386d848616ca8a7aa497ebc6c977c775b0.tar.bz2 rails-4c5f03386d848616ca8a7aa497ebc6c977c775b0.zip |
fix variable name
Diffstat (limited to 'railties/lib')
-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 -%> |