From 4ced53d87bb51411bebe3a8a923ffba56ed2ad2b Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Tue, 8 Nov 2016 10:01:13 +0800 Subject: [PATCH] Fix #34 rucaptcha.root_url -> 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 d491203..9807783 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