From fe33c736925a64bd9251d026323da2043eb48c1d Mon Sep 17 00:00:00 2001 From: Yongqiang Qu Date: Fri, 29 Dec 2017 10:04:01 +0800 Subject: [PATCH] fix: ru_captcha.root_url -> ru_captcha.root_path, to avoid generate a http url in a https application. --- lib/rucaptcha/view_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rucaptcha/view_helpers.rb b/lib/rucaptcha/view_helpers.rb index 7a5cec2..a979654 100644 --- a/lib/rucaptcha/view_helpers.rb +++ b/lib/rucaptcha/view_helpers.rb @@ -13,7 +13,7 @@ module RuCaptcha def rucaptcha_image_tag(opts = {}) opts[:class] = opts[:class] || 'rucaptcha-image' - image_tag(ru_captcha.root_url, opts) + image_tag(ru_captcha.root_path, opts) end end end