diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-07-09 17:51:30 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-07-09 17:51:30 +0900 |
commit | 8c6f7ca88859bfc67d81fdd1d24f14b1b5ae7e87 (patch) | |
tree | 76af246b2aa38e95a0313ca3d46ec427251ec3f3 /railties/lib/rails | |
parent | 5ea8efecd08a71ca78688105a39b8a94236443ed (diff) | |
download | rails-8c6f7ca88859bfc67d81fdd1d24f14b1b5ae7e87.tar.gz rails-8c6f7ca88859bfc67d81fdd1d24f14b1b5ae7e87.tar.bz2 rails-8c6f7ca88859bfc67d81fdd1d24f14b1b5ae7e87.zip |
remove `web-console` from API app generated Gemfile
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index b083381255..6a1c2faaab 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile @@ -36,13 +36,15 @@ group :development, :test do end group :development do +<%- unless options.api? -%> # Access an IRB console on exception pages or by using <%%= console %> in views <%- if options.dev? || options.edge? -%> gem 'web-console', github: 'rails/web-console' <%- else -%> gem 'web-console', '~> 2.0' <%- end -%> -<%- if spring_install? %> +<%- end -%> +<% if spring_install? -%> # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' <% end -%> |