instance method
check_validity!
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
check_validity!()
No documentation comment.
Source
# 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
Defined in activemodel/lib/active_model/validations/inclusion.rb line 6
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Validations::InclusionValidator