class ActiveModel::Validations::LengthValidator

def skip_nil_check?(key)

def skip_nil_check?(key)
  key == :maximum && options[:allow_nil].nil? && options[:allow_blank].nil?
end