class Utranslate::HashValidator
Public Instance Methods
validate_each(record, attribute, value)
click to toggle source
# File lib/utranslate/validators/hash_validator.rb, line 5 def validate_each(record, attribute, value) return if value.is_a?(Hash) record.errors[attribute] << 'Incorrect format for translated column, should be a hash.' end