instance method
_validates_default_keys
Ruby on Rails 3.2.22.5
Since v3.1.12Signature
_validates_default_keys()
When creating custom validators, it might be useful to be able to specify additional default keys. This can be done by overwriting this method.
Source
# File activemodel/lib/active_model/validations/validates.rb, line 119
def _validates_default_keys
[:if, :unless, :on, :allow_blank, :allow_nil , :strict]
end
Defined in activemodel/lib/active_model/validations/validates.rb line 119
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Validations::ClassMethods