Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add Yandex CDN for Russian users #5

Merged
merged 1 commit into from Aug 16, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −1
Split
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 = {})