Module: RedisModelExtension::Validations

Defined in:
lib/redis-model-extension/validation.rb

Instance Method Summary collapse

Instance Method Details

#errorObject



80
81
82
# File 'lib/redis-model-extension/validation.rb', line 80

def error
  self.errors
end

#valid_alias_key?(alias_name) ⇒ Boolean

pointer to validation

Returns:

  • (Boolean)


76
77
78
# File 'lib/redis-model-extension/validation.rb', line 76

def valid_alias_key? alias_name
  self.class.valid_alias_key? alias_name, to_arg
end

#valid_key?Boolean

pointer to validation

Returns:

  • (Boolean)


71
72
73
# File 'lib/redis-model-extension/validation.rb', line 71

def valid_key?
  self.class.valid_key? to_arg
end