aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-11-25 22:34:10 -0200
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-11-25 22:34:10 -0200
commit75eacb00e0a5b23dca4f067dacafecddcb41b04a (patch)
tree5e7005cde5fd382bea03c15256961b775dab08ae
parent807d61dc8bbf51c841dd713645d46b537abcd165 (diff)
downloadrails-75eacb00e0a5b23dca4f067dacafecddcb41b04a.tar.gz
rails-75eacb00e0a5b23dca4f067dacafecddcb41b04a.tar.bz2
rails-75eacb00e0a5b23dca4f067dacafecddcb41b04a.zip
Use jquery-rails 4.0.0
-rw-r--r--Gemfile2
-rw-r--r--railties/lib/rails/generators/app_base.rb10
2 files changed, 3 insertions, 9 deletions
diff --git a/Gemfile b/Gemfile
index 9f27acca6f..99e2cb9f58 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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,