Skip to content
Browse files

Add the cloudflare js CDN (http://cdnjs.com/)

  • Loading branch information...
1 parent 17a0da1 commit bad8c169d4917e6062c8d44527e60840f42f5a43 @damonmorgan damonmorgan committed Mar 22, 2013
Showing with 3 additions and 2 deletions.
  1. +1 −1 README.md
  2. +2 −1 lib/jquery-rails-cdn.rb
View
2 README.md
@@ -61,7 +61,7 @@ Then in layout:
= javascript_include_tag 'application'
```
-Note that valid CDN symbols are `:google`, `:microsoft`, `:jquery` and `:yandex`.
+Note that valid CDN symbols are `:google`, `:microsoft`, `:jquery`, `:cloudflare` and `:yandex`.
Now, it will generate the following on production:
View
3 lib/jquery-rails-cdn.rb
@@ -9,7 +9,8 @@ module ActionViewExtensions
:google => "//ajax.googleapis.com/ajax/libs/jquery/#{JQUERY_VERSION}/jquery.min.js",
:microsoft => "//ajax.aspnetcdn.com/ajax/jQuery/jquery-#{JQUERY_VERSION}.min.js",
:jquery => "http://code.jquery.com/jquery-#{JQUERY_VERSION}.min.js",
- :yandex => "//yandex.st/jquery/#{JQUERY_VERSION}/jquery.min.js"
+ :yandex => "//yandex.st/jquery/#{JQUERY_VERSION}/jquery.min.js",
+ :cloudflare => "//cdnjs.cloudflare.com/ajax/libs/jquery/#{JQUERY_VERSION}/jquery.min.js"
}
def jquery_url(name, options = {})

0 comments on commit bad8c16

Please sign in to comment.
Something went wrong with that request. Please try again.