Method: Reform::Form::Validate#validate

Defined in:
lib/reform/form/validate.rb

#validate(params) ⇒ Object

  1. Populate the form object graph so that each incoming object has a representative form object.

  2. Deserialize. This is wrong and should be done in 1.

  3. Validate the form object graph.



79
80
81
82
83
# File 'lib/reform/form/validate.rb', line 79

def validate(params)
  update!(params)

  super() # run the actual validation on self.
end