Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add an option to skip jbuilder

  • Loading branch information...
commit f5c5d21681616c6b9240792092e656d3d1af385b 1 parent 4c5f033
@tenderlove tenderlove authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/lib/rails/generators/app_base.rb
View
4 railties/lib/rails/generators/app_base.rb
@@ -47,6 +47,9 @@ def self.add_shared_options_for(name)
class_option :skip_sprockets, type: :boolean, aliases: '-S', default: false,
desc: 'Skip Sprockets files'
+ class_option :skip_jbuilder, type: :boolean, default: false,
+ desc: "Don't include jbuilder in the Gemfile"
+
class_option :database, type: :string, aliases: '-d', default: 'sqlite3',
desc: "Preconfigure for selected database (options: #{DATABASES.join('/')})"
@@ -229,6 +232,7 @@ def assets_gemfile_entry
end
def jbuilder_gemfile_entry
+ return [] if options[:skip_jbuilder]
comment = 'Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder'
GemfileEntry.version('jbuilder', '~> 1.2', comment)
end
Please sign in to comment.
Something went wrong with that request. Please try again.