aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/app_base.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2015-12-15 16:45:57 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2015-12-15 16:46:02 -0300
commitf8edd2043e864aff0bde9289da550709532268a6 (patch)
treede1f0f70d9be602c1dbe1756f07b940bb647b6bb /railties/lib/rails/generators/app_base.rb
parent8391007b7ca123d26ec9b8581b56d6243c3cb908 (diff)
downloadrails-f8edd2043e864aff0bde9289da550709532268a6.tar.gz
rails-f8edd2043e864aff0bde9289da550709532268a6.tar.bz2
rails-f8edd2043e864aff0bde9289da550709532268a6.zip
Do not default to any Serializer
We will wait until 5.1 to make a decision
Diffstat (limited to 'railties/lib/rails/generators/app_base.rb')
-rw-r--r--railties/lib/rails/generators/app_base.rb4
1 files changed, 1 insertions, 3 deletions
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