Module: Elastictastic::Validations::ClassMethods

Defined in:
lib/elastictastic/validations.rb

Instance Method Summary collapse

Instance Method Details

#embed(*embed_names) ⇒ Object



10
11
12
13
14
15
# File 'lib/elastictastic/validations.rb', line 10

def embed(*embed_names)
  super
  embed_names.extract_options!
  args = embed_names + [{ :nested => true }]
  validates(*args)
end