Skip to content

Commit f11d788

Browse files
htpindirect
authored andcommitted
Bump default jQuery version to 1.5.
1 parent fba28b9 commit f11d788

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In your Gemfile, add this line:
1212

1313
Then, run `bundle install`. To invoke the generator, run:
1414

15-
rails generate jquery:install #--ui to enable jQuery UI --version to install specific version of JQuery (default is 1.4.2)
15+
rails generate jquery:install #--ui to enable jQuery UI --version to install specific version of JQuery (default is 1.5)
1616

1717
You're done! Don't forget to output `csrf_meta_tag` somewhere inside your `<head>` tag in your layout!
1818

lib/generators/jquery/install/install_generator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module Generators
33
class InstallGenerator < ::Rails::Generators::Base
44
desc "This generator downloads and installs jQuery, jQuery-ujs HEAD, and (optionally) the newest jQuery UI"
55
class_option :ui, :type => :boolean, :default => false, :desc => "Include jQueryUI"
6-
class_option :version, :type => :string, :default => "1.4.4", :desc => "Which version of jQuery to fetch"
7-
@@default_version = "1.4.4"
6+
class_option :version, :type => :string, :default => "1.5", :desc => "Which version of jQuery to fetch"
7+
@@default_version = "1.5"
88

99
def remove_prototype
1010
%w(controls.js dragdrop.js effects.js prototype.js).each do |js|

0 commit comments

Comments
 (0)