class ActiveModel::Validations::ExclusionValidator
def validate_each(record, attribute, value)
def validate_each(record, attribute, value) if options[:in].include?(value) record.errors.add(attribute, :exclusion, options.except(:in).merge!(:value => value)) end end