Merge pull request #74 from huacnlee/fix/view-helper-url-path-bug

Fix view helper url path bug
This commit is contained in:
Jason Lee 2019-03-07 10:33:56 +08:00 committed by GitHub
commit 4e327b5c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2.5.0
-------
- Support click captcha image to refresh new one by default.
- Use simple tag helper generate captcha img html, for avoid asset_host (#73).
2.4.0
-------

View File

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

View File

@ -1,3 +1,3 @@
module RuCaptcha
VERSION = '2.4.0'
VERSION = '2.5.0'
end

View File

@ -13,7 +13,9 @@ module RuCaptcha
def rucaptcha_image_tag(opts = {})
opts[:class] = opts[:class] || 'rucaptcha-image'
image_tag(ru_captcha.root_path, opts)
opts[:src] = ru_captcha.root_path
opts[:onclick] = "this.src = '#{ru_captcha.root_path}?t=' + Date.now();"
tag(:img, opts)
end
end
end