mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove web-console
from API app generated Gemfile
This commit is contained in:
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 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue