diff options
author | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2014-11-25 22:34:10 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2014-11-25 22:34:10 -0200 |
commit | 75eacb00e0a5b23dca4f067dacafecddcb41b04a (patch) | |
tree | 5e7005cde5fd382bea03c15256961b775dab08ae | |
parent | 807d61dc8bbf51c841dd713645d46b537abcd165 (diff) | |
download | rails-75eacb00e0a5b23dca4f067dacafecddcb41b04a.tar.gz rails-75eacb00e0a5b23dca4f067dacafecddcb41b04a.tar.bz2 rails-75eacb00e0a5b23dca4f067dacafecddcb41b04a.zip |
Use jquery-rails 4.0.0
-rw-r--r-- | Gemfile | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 10 |
2 files changed, 3 insertions, 9 deletions
@@ -11,7 +11,7 @@ gem 'rake', '>= 10.3' gem 'mocha', '~> 0.14', require: false gem 'rack-cache', '~> 1.2' -gem 'jquery-rails', '~> 4.0.0.beta2' +gem 'jquery-rails', '~> 4.0' gem 'coffee-rails', '~> 4.1.0' gem 'turbolinks' diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index be79f37e94..0823b0cc46 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -276,14 +276,8 @@ module Rails [] else gems = [coffee_gemfile_entry, javascript_runtime_gemfile_entry] - - if options[:javascript] == 'jquery' - gems << GemfileEntry.version('jquery-rails', '~> 4.0.0.beta2', - 'Use jQuery as the JavaScript library') - else - gems << GemfileEntry.version("#{options[:javascript]}-rails", nil, - "Use #{options[:javascript]} as the JavaScript library") - end + gems << GemfileEntry.version("#{options[:javascript]}-rails", nil, + "Use #{options[:javascript]} as the JavaScript library") unless options[:skip_turbolinks] gems << GemfileEntry.version("turbolinks", nil, |