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:
parent
dd158e1b40
commit
771b7afaa0
|
@ -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
|
||||
-----
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
rucaptcha (2.0.0)
|
||||
rucaptcha (2.0.1)
|
||||
railties (>= 3.2)
|
||||
|
||||
GEM
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module RuCaptcha
|
||||
VERSION = '2.0.0'
|
||||
VERSION = '2.0.1'
|
||||
end
|
||||
|
|
|
@ -13,7 +13,7 @@ module RuCaptcha
|
|||
|
||||
def rucaptcha_image_tag(opts = {})
|
||||
opts[:class] = opts[:class] || 'rucaptcha-image'
|
||||
image_tag(ru_captcha.root_path, opts)
|
||||
image_tag(ru_captcha.root_url, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue