class ActiveModel::Validations::HashKeysValidator
Public Instance Methods
validate_each(record, attribute, hash)
click to toggle source
Calls superclass method
ActiveModel::Validations::ArrayValidator#validate_each
# File lib/can_has_validations/validators/hash_keys_validator.rb, line 24 def validate_each(record, attribute, hash) super(record, attribute, Hash(hash).keys) end