Skip to content

Commit

Permalink
Add Yandex CDN for Russian users
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 16, 2012
1 parent f30fd10 commit 9beb1c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Note that valid CDN symbols are:
:google_schemeless
:microsoft
:jquery
:yandex
```

It will generate the following on production:
Expand Down
3 changes: 2 additions & 1 deletion lib/jquery-rails-cdn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {})
Expand Down

1 comment on commit 9beb1c7

@TheBits
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Please sign in to comment.