Merge pull request #1532 from mameier/master

Fix minlength
This commit is contained in:
Felipe Renan 2018-01-11 11:42:35 -02:00 committed by GitHub
commit 86435b4da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module SimpleForm
# Needs to be enabled in order to do automatic lookups.
module Minlength
def minlength(wrapper_options = nil)
input_html_options[:minlength] ||= minimum_length_from_validation || limit
input_html_options[:minlength] ||= minimum_length_from_validation
nil
end