fix: ru_captcha.root_url -> ru_captcha.root_path, to avoid generate a http url in a https application.

This commit is contained in:
Yongqiang Qu 2017-12-29 10:04:01 +08:00
parent 7071fb02ae
commit fe33c73692
1 changed files with 1 additions and 1 deletions

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_url, opts) image_tag(ru_captcha.root_path, opts)
end end
end end
end end