Add AMS 0.10.0.rc1 by default for api apps

This commit is contained in:
Santiago Pastorino 2015-05-14 17:17:41 -03:00
parent dc4c68aaaa
commit 511c33a157
2 changed files with 6 additions and 0 deletions

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