Reform v0.2.0 Release Notes
-
- Added nested property and collection for
has_one
andhas_many
relationships. . Note that this currently works only 1-level deep. - ๐ Renamed
Reform::Form::DSL
toReform::Form::Composition
and deprecatedDSL
. - ๐
require 'reform'
now automatically requires Rails stuff in a Rails environment. Mainly, this is the FormBuilder compatibility layer that is injected intoForm
. If you don't want that, only require 'reform/form'. - Composition now totally optional
Form.new
now accepts one argument, only: the model/composition. If you want to create your own representer, inject it by overridingForm#mapper
. Note that this won't create property accessors for you.Form::ActiveModel
no longer creates accessors to your represented models, e.g. havingproperty :title, on: :song
doesn't allowform.song
anymore. This is because the actual model and the form's state might differ, so please useform.title
directly.
- Added nested property and collection for