Skip to content
Browse files

add an option to skip jbuilder

  • Loading branch information...
1 parent 4c5f033 commit f5c5d21681616c6b9240792092e656d3d1af385b @tenderlove tenderlove committed Oct 27, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/lib/rails/generators/app_base.rb
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
def jbuilder_gemfile_entry
+ return [] if options[:skip_jbuilder]
comment = 'Build JSON APIs with ease. Read more:'
GemfileEntry.version('jbuilder', '~> 1.2', comment)

0 comments on commit f5c5d21

Please sign in to comment.
Something went wrong with that request. Please try again.