instance method
check_validity!
Ruby on Rails 3.1.12
Since v3.0.20Signature
check_validity!()
Hook method that gets called by the initializer allowing verification that the arguments supplied are valid. You could for example raise an ArgumentError when invalid options are supplied.
Source
# File activemodel/lib/active_model/validator.rb, line 166
def check_validity!
end
Defined in activemodel/lib/active_model/validator.rb line 166
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::EachValidator