Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add Yandex CDN for Russian users

  • Loading branch information...
commit 9beb1c7f1095ab79773509cdac40e80886c25e13 1 parent f30fd10
Andrey Sitnik ai authored

Showing 2 changed files with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +1 0  README.md
  2. +2 1  lib/jquery-rails-cdn.rb
1  README.md
Source Rendered
@@ -57,6 +57,7 @@ Note that valid CDN symbols are:
57 57 :google_schemeless
58 58 :microsoft
59 59 :jquery
  60 +:yandex
60 61 ```
61 62
62 63 It will generate the following on production:
3  lib/jquery-rails-cdn.rb
@@ -10,7 +10,8 @@ module ActionViewExtensions
10 10 :google_ssl => "https://ajax.googleapis.com/ajax/libs/jquery/#{JQUERY_VERSION}/jquery.min.js",
11 11 :google_schemeless => "//ajax.googleapis.com/ajax/libs/jquery/#{JQUERY_VERSION}/jquery.min.js",
12 12 :microsoft => "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-#{JQUERY_VERSION}.min.js",
13   - :jquery => "http://code.jquery.com/jquery-#{JQUERY_VERSION}.min.js"
  13 + :jquery => "http://code.jquery.com/jquery-#{JQUERY_VERSION}.min.js",
  14 + :yandex => "http://yandex.st/jquery/#{JQUERY_VERSION}/jquery.js"
14 15 }
15 16
16 17 def jquery_url(name, options = {})

1 comment on commit 9beb1c7

Sergey Mezentsev

Thank you!

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