Permalink
Browse files

Add Yandex CDN for Russian users

  • Loading branch information...
1 parent f30fd10 commit 9beb1c7f1095ab79773509cdac40e80886c25e13 @ai ai committed Aug 16, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 README.md
  2. +2 −1 lib/jquery-rails-cdn.rb
View
@@ -57,6 +57,7 @@ Note that valid CDN symbols are:
:google_schemeless
:microsoft
:jquery
+:yandex
```
It will generate the following on production:
View
@@ -10,7 +10,8 @@ module ActionViewExtensions
:google_ssl => "https://ajax.googleapis.com/ajax/libs/jquery/#{JQUERY_VERSION}/jquery.min.js",
:google_schemeless => "//ajax.googleapis.com/ajax/libs/jquery/#{JQUERY_VERSION}/jquery.min.js",
:microsoft => "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-#{JQUERY_VERSION}.min.js",
- :jquery => "http://code.jquery.com/jquery-#{JQUERY_VERSION}.min.js"
+ :jquery => "http://code.jquery.com/jquery-#{JQUERY_VERSION}.min.js",
+ :yandex => "http://yandex.st/jquery/#{JQUERY_VERSION}/jquery.js"
}
def jquery_url(name, options = {})

1 comment on commit 9beb1c7

Thank you!

Please sign in to comment.