Class: Validatable::Errors

Inherits:
Object
  • Object
show all
Defined in:
lib/couch_potato/validation/with_validatable.rb

Instance Method Summary collapse

Instance Method Details

#[](attribute) ⇒ Object



37
38
39
# File 'lib/couch_potato/validation/with_validatable.rb', line 37

def [](attribute)
  [on(attribute)].flatten.compact
end