From f8edd2043e864aff0bde9289da550709532268a6 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 15 Dec 2015 16:45:57 -0300 Subject: Do not default to any Serializer We will wait until 5.1 to make a decision --- railties/lib/rails/generators/app_base.rb | 4 +--- railties/lib/rails/generators/rails/app/templates/Gemfile | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 56c9d3e354..c243b0c60e 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -278,10 +278,8 @@ module Rails end def jbuilder_gemfile_entry - return [] if options[:api] - comment = 'Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder' - GemfileEntry.version('jbuilder', '~> 2.0', comment) + GemfileEntry.new 'jbuilder', '~> 2.0', comment, {}, options[:api] end def coffee_gemfile_entry diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index 2f7ffc055d..4384d9b6eb 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile @@ -22,9 +22,6 @@ source 'https://rubygems.org' # gem 'capistrano-rails', group: :development <%- if options.api? -%> -# Use ActiveModelSerializers to serialize JSON responses -gem 'active_model_serializers', '~> 0.10.0.rc2' - # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible # gem 'rack-cors' -- cgit v1.2.3