Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use jquery-rails from github #9904

Merged
merged 1 commit into from

2 participants

@rubys

completes 6f3f0f8

@guilleiguaran guilleiguaran merged commit b78f77f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 24, 2013
  1. @rubys

    Use jquery-rails from github

    rubys authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 railties/lib/rails/generators/app_base.rb
View
4 railties/lib/rails/generators/app_base.rb
@@ -210,9 +210,11 @@ def assets_gemfile_entry
end
def javascript_gemfile_entry
+ args = {'jquery' => ", github: 'rails/jquery-rails'"}
+
unless options[:skip_javascript]
<<-GEMFILE.strip_heredoc
- gem '#{options[:javascript]}-rails'
+ gem '#{options[:javascript]}-rails'#{args[options[:javascript]]}
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
Something went wrong with that request. Please try again.