Flowdock
method

tokenize

Importance_0
v3.2.3 - Show latest stable - 0 notes - Class: ActiveModel::Validations::LengthValidator
tokenize(value) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/validations/length.rb, line 59
      def tokenize(value)
        if value.kind_of?(String)
          if options[:tokenizer]
            options[:tokenizer].call(value)
          elsif !value.encoding_aware?
            value.mb_chars
          end
        end || value
      end
Register or log in to add new notes.