class ActiveModel::Validations::SsnValidatorGeneral
DEPRECATED: Please use :ssn => true
instead.
Public Class Methods
valid?(options, value)
click to toggle source
# File lib/active_validators/active_model/validations/ssn_validator.rb, line 11 def self.valid?(options, value) if options[:type] == :usa_ssn ActiveSupport::Deprecation.warn "providing {:type => :usa_ssn} is deprecated and will be removed in the future. Please use `:ssn => true` instead." end SsnValidatorUSA.new(value).valid? end