Add AMS 0.10.0.rc1 by default for api apps
This commit is contained in:
parent
dc4c68aaaa
commit
511c33a157
@ -21,6 +21,11 @@ source 'https://rubygems.org'
|
||||
# Use Capistrano for deployment
|
||||
# gem 'capistrano-rails', group: :development
|
||||
|
||||
<%- if options.api? -%>
|
||||
# Use ActiveModelSerializers to serialize JSON responses
|
||||
gem 'active_model_serializers', '~> 0.10.0.rc1'
|
||||
|
||||
<%- end -%>
|
||||
<% if RUBY_ENGINE == 'ruby' -%>
|
||||
group :development, :test do
|
||||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
||||
|
@ -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_match(/gem 'active_model_serializers'/, content)
|
||||
end
|
||||
|
||||
assert_file "config/application.rb" do |content|
|
||||
|
Loading…
Reference in New Issue
Block a user