Skip to content
Browse files

fix tokenizer

  • Loading branch information...
1 parent 5522243 commit bd20bada2d527ab2ababecde4665c1dab4505f33 @nashby committed Jan 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/simple_form/components/maxlength.rb
View
2 lib/simple_form/components/maxlength.rb
@@ -31,6 +31,8 @@ def has_tokenizer?(length_validator)
if ActiveModel::Validations::LengthValidator.const_defined?(:DEFAULT_TOKENIZER)
tokenizer && tokenizer != ActiveModel::Validations::LengthValidator::DEFAULT_TOKENIZER
+ else
+ tokenizer
end
end
end

0 comments on commit bd20bad

Please sign in to comment.
Something went wrong with that request. Please try again.