diff options
author | David RodrÃguez de Dios <deivid.rodriguez@gmail.com> | 2014-04-10 16:20:46 +0200 |
---|---|---|
committer | David RodrÃguez de Dios <deivid.rodriguez@gmail.com> | 2014-04-10 16:20:46 +0200 |
commit | 7fe49a4545d5b580ccd324ec86889eeb166c50f6 (patch) | |
tree | 76405113bacd8949a8d69c3c3150a3e06c3c9439 /railties/lib | |
parent | 6fae9ac58147948474c3fa472f0eb04525737d45 (diff) | |
download | rails-7fe49a4545d5b580ccd324ec86889eeb166c50f6.tar.gz rails-7fe49a4545d5b580ccd324ec86889eeb166c50f6.tar.bz2 rails-7fe49a4545d5b580ccd324ec86889eeb166c50f6.zip |
Prevent generation of extra whitespace in templates
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 6 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/Gemfile | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index faca76f150..756c334772 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/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/) -%> diff --git a/railties/lib/rails/generators/rails/plugin/templates/Gemfile b/railties/lib/rails/generators/rails/plugin/templates/Gemfile index 5313cb6c0f..1f704db510 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/Gemfile +++ b/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 -%> |