marnen/duckbill

View on GitHub
app/validators/state_validator.rb

Summary

Maintainability
A
0 mins
Test Coverage
class StateValidator < ActiveModel::Validations::LengthValidator
  def initialize(options)
    options.reverse_merge! is: 2, allow_nil: true, allow_blank: true
    super options
  end
end