remove web-console from API app generated Gemfile

This commit is contained in:
yuuji.yaginuma 2015-07-09 17:51:30 +09:00
parent 5ea8efecd0
commit 8c6f7ca888
2 changed files with 4 additions and 1 deletions

@ -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 -%>

@ -38,6 +38,7 @@ def test_api_modified_files
assert_no_match(/gem 'jquery-rails'/, content)
assert_no_match(/gem 'sass-rails'/, content)
assert_no_match(/gem 'jbuilder'/, content)
assert_no_match(/gem 'web-console'/, content)
assert_match(/gem 'active_model_serializers'/, content)
end