aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2017-08-04 09:11:38 -0400
committerGitHub <noreply@github.com>2017-08-04 09:11:38 -0400
commite3edbd6cc9fafff2e9bf2eff357e0204031047b0 (patch)
treefc805e782f1ff8dc5732c8c8499e783048267d85 /railties
parent050bbb1f3329bd4fe7740e7feb572e95c246d49e (diff)
parent6721960ad23262b055cc69f4fe5b873b5d09ebbf (diff)
downloadrails-e3edbd6cc9fafff2e9bf2eff357e0204031047b0.tar.gz
rails-e3edbd6cc9fafff2e9bf2eff357e0204031047b0.tar.bz2
rails-e3edbd6cc9fafff2e9bf2eff357e0204031047b0.zip
Merge pull request #30022 from y-yagi/remove_extra_empty_line
Remove extra empty line
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/Gemfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile
index 4b2842ef46..7b7bebc957 100644
--- a/railties/lib/rails/generators/rails/app/templates/Gemfile
+++ b/railties/lib/rails/generators/rails/app/templates/Gemfile
@@ -1,7 +1,11 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
-ruby <%= "'#{RUBY_VERSION}'" %>
+ruby <%= "'#{RUBY_VERSION}'" -%>
+
+<% unless gemfile_entries.first.comment -%>
+
+<% end -%>
<% gemfile_entries.each do |gem| -%>
<% if gem.comment -%>