Use xxx_url to fix bad captcha URL for enabled case.

This commit is contained in:
Jason Lee 2015-10-26 20:53:30 +08:00
parent a2bce5fec4
commit e7cc8091fb
4 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,7 @@
-----
- `zh-TW` translate file fixed.
- Use xxx_url to fix bad captcha URL for `config.action_controller.asset_host` enabled case.
0.1.2
-----

View File

@ -78,3 +78,7 @@ describe 'sign up and login', type: :feature do
end
```
## TODO
- Use [rtesseract](https://github.com/dannnylo/rtesseract) to test OCR.

View File

@ -1,4 +1,3 @@
module RuCaptcha
VERSION = '0.1.2'
VERSION = '0.1.3'
end

View File

@ -7,7 +7,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