Module: Reform::Form::Validate
- Included in:
- Reform::Form
- Defined in:
- lib/reform/form/validate.rb
Overview
Mechanics for writing to forms in #validate.
Defined Under Namespace
Modules: Populator, Update
Instance Method Summary
collapse
Instance Method Details
#update!(params) ⇒ Object
92
93
94
95
96
97
|
# File 'lib/reform/form/validate.rb', line 92
def update!(params)
populate!(params)
mapper.new(self).extend(Update).from_hash(params)
end
|
#validate(params) ⇒ Object
86
87
88
89
90
|
# File 'lib/reform/form/validate.rb', line 86
def validate(params)
update!(params)
super()
end
|