method
check_validity!
v3.0.9 -
Show latest stable
- Class:
ActiveModel::Validations::InclusionValidator
check_validity!()public
No documentation available.
# File activemodel/lib/active_model/validations/inclusion.rb, line 6
def check_validity!
raise ArgumentError, "An object with the method include? is required must be supplied as the " <<
":in option of the configuration hash" unless options[:in].respond_to?(:include?)
end