diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2015-05-14 17:17:41 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-06-11 16:54:15 -0300 |
commit | 511c33a157464aa2b6476f26f66df6b7a1a4003e (patch) | |
tree | 0ffbf7f2e27294056f83f619da734b089b0723d5 /railties/lib | |
parent | dc4c68aaaad8a89c7717930d06c4c6340314f3a2 (diff) | |
download | rails-511c33a157464aa2b6476f26f66df6b7a1a4003e.tar.gz rails-511c33a157464aa2b6476f26f66df6b7a1a4003e.tar.bz2 rails-511c33a157464aa2b6476f26f66df6b7a1a4003e.zip |
Add AMS 0.10.0.rc1 by default for api apps
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index 29203b9c37..cf811503be 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile @@ -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 |