Module: JsonRecord::EmbeddedDocument::ValidationCallbacks

Defined in:
lib/json_record/embedded_document.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#after_validation(*args, &block) ⇒ Object


28
29
30
# File 'lib/json_record/embedded_document.rb', line 28

def after_validation (*args, &block)
  set_callback(:validation, :after, *args, &block)
end

#before_validation(*args, &block) ⇒ Object


24
25
26
# File 'lib/json_record/embedded_document.rb', line 24

def before_validation (*args, &block)
  set_callback(:validation, :before, *args, &block)
end