Update view_helpers.rb (#37)

This commit is contained in:
lizy 2017-01-09 17:09:46 +08:00 committed by Jason Lee
parent 45a9056cf4
commit 9159b8cd10
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ module RuCaptcha
opts[:type] = 'text' opts[:type] = 'text'
opts[:autocorrect] = 'off' opts[:autocorrect] = 'off'
opts[:autocapitalize] = 'off' opts[:autocapitalize] = 'off'
opts[:pattern] = '[0-9a-z]*' opts[:pattern] = '[0-9a-zA-Z]*'
opts[:maxlength] = RuCaptcha.config.len opts[:maxlength] = RuCaptcha.config.len
opts[:autocomplete] = 'off' opts[:autocomplete] = 'off'
tag(:input, opts) tag(:input, opts)