Custom Length Validation Tokenizers in Rails Validations
Ryan Daigle notes that ActiveRecord's validates_length_of validator now accepts a "tokenizer" block to implement custom length validators. Sounds confusing, but is actually rather useful.
Ryan Daigle notes that ActiveRecord's validates_length_of validator now accepts a "tokenizer" block to implement custom length validators. Sounds confusing, but is actually rather useful.