Method: Elastictastic::Validations#save

Defined in:
lib/elastictastic/validations.rb

#save(options = {}) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/elastictastic/validations.rb', line 18

def save(options = {})
  if options[:validate] == false || valid?
    super
    true
  else
    false
  end
end