Fix `/rucaptcha` path issue when `config.action_controller.asset_host` has setup with CDN url.

close ruby-china/homeland/pull/856
fix #39
This commit is contained in:
Jason Lee 2017-02-04 21:47:13 +08:00
parent dd158e1b40
commit 771b7afaa0
4 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2.0.1
-----
- Fix `/rucaptcha` path issue when `config.action_controller.asset_host` has setup with CDN url.
2.0.0 2.0.0
----- -----

View File

@ -1,7 +1,7 @@
PATH PATH
remote: . remote: .
specs: specs:
rucaptcha (2.0.0) rucaptcha (2.0.1)
railties (>= 3.2) railties (>= 3.2)
GEM GEM

View File

@ -1,3 +1,3 @@
module RuCaptcha module RuCaptcha
VERSION = '2.0.0' VERSION = '2.0.1'
end end

View File

@ -13,7 +13,7 @@ module RuCaptcha
def rucaptcha_image_tag(opts = {}) def rucaptcha_image_tag(opts = {})
opts[:class] = opts[:class] || 'rucaptcha-image' opts[:class] = opts[:class] || 'rucaptcha-image'
image_tag(ru_captcha.root_path, opts) image_tag(ru_captcha.root_url, opts)
end end
end end
end end