module Elastictastic::Validations::ClassMethods

Public Instance Methods

embed(*embed_names) click to toggle source
Calls superclass method
# File lib/elastictastic/validations.rb, line 10
def embed(*embed_names)
  super
  embed_names.extract_options!
  args = embed_names + [{ :nested => true }]
  validates(*args)
end