diff options
author | Marc Schütz <schuetzm@gmx.net> | 2014-06-14 11:06:18 +0200 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2014-06-14 12:03:09 +0200 |
commit | e3dca3acc6919b0824bc126f8a397f5f4e7484a2 (patch) | |
tree | 842529d92ed3597adaa246fb4245047426176901 /railties/lib/rails/generators | |
parent | a041107bf50d42ca92d41c89355ba663d700af48 (diff) | |
download | rails-e3dca3acc6919b0824bc126f8a397f5f4e7484a2.tar.gz rails-e3dca3acc6919b0824bc126f8a397f5f4e7484a2.tar.bz2 rails-e3dca3acc6919b0824bc126f8a397f5f4e7484a2.zip |
Add an option to skip installation of Turbolinks
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 569afe8104..3f253e3d3e 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -50,6 +50,9 @@ module Rails class_option :skip_spring, type: :boolean, default: false, desc: "Don't install Spring application preloader" + class_option :skip_turbolinks, type: :boolean, default: false, + desc: "Don't install Turbolinks" + class_option :database, type: :string, aliases: '-d', default: 'sqlite3', desc: "Preconfigure for selected database (options: #{DATABASES.join('/')})" @@ -287,8 +290,10 @@ module Rails gems << GemfileEntry.version("#{options[:javascript]}-rails", nil, "Use #{options[:javascript]} as the JavaScript library") - gems << GemfileEntry.version("turbolinks", nil, - "Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks") + unless options[:skip_turbolinks] + gems << GemfileEntry.version("turbolinks", nil, + "Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks") + end gems end end |