Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prevent generation of extra whitespace in templates

  • Loading branch information...
commit 7fe49a4545d5b580ccd324ec86889eeb166c50f6 1 parent 6fae9ac
@deivid-rodriguez deivid-rodriguez authored
View
6 railties/lib/rails/generators/rails/app/templates/Gemfile
@@ -24,11 +24,11 @@ source 'https://rubygems.org'
<% unless defined?(JRUBY_VERSION) -%>
# To use a debugger
- <% if RUBY_VERSION < '2.0.0' -%>
+ <%- if RUBY_VERSION < '2.0.0' -%>
# gem 'debugger', group: [:development, :test]
- <% else -%>
+ <%- else -%>
# gem 'byebug', group: [:development, :test]
- <% end -%>
+ <%- end -%>
<% end -%>
<% if RUBY_PLATFORM.match(/bccwin|cygwin|emx|mingw|mswin|wince/) -%>
View
6 railties/lib/rails/generators/rails/plugin/templates/Gemfile
@@ -39,9 +39,9 @@ end
<% end -%>
<% unless defined?(JRUBY_VERSION) -%>
# To use a debugger
- <% if RUBY_VERSION < '2.0.0' -%>
+ <%- if RUBY_VERSION < '2.0.0' -%>
# gem 'debugger', group: [:development, :test]
- <% else -%>
+ <%- else -%>
# gem 'byebug', group: [:development, :test]
- <% end -%>
+ <%- end -%>
<% end -%>
Please sign in to comment.
Something went wrong with that request. Please try again.