Reform v1.0.0 Release Notes
-
- โ Removed
Form::DSL
in favour ofForm::Composition
. - Simplified nested forms. You can now do
ruby validates :songs, :length => {:minimum => 1} validates :hit, :presence => true
- ๐ Allow passing symbol hash keys into
#validate
. - Unlimited nesting of forms, if you really want that.
save
gets called on all nested forms automatically, disable withsave: false
.- Renaming with
as:
now works everywhere. - ๐ Fixes to make
Composition
work everywhere. - Extract setup and validate into
Contract
. - Automatic population with
:populate_if_empty
in#validate
. - Remove
#from_hash
and#to_hash
. - ๐ Introduce
#sync
and make#save
less smart.
- โ Removed