ex_machina v2.0.0 Release Notes
Release Date: 2017-03-03 // about 7 years ago-
โ Added
- Cast all values before insert (#149)
For example, this means that if you have
field :equity, :decimal
in your schema, you can set the value to0
in your factory and it will automatically cast the value to a Decimal.- Add
string_params_for
, which is useful for controller specs. (#168) - โ Add
Sequence.reset/0
for resetting sequences between tests. (#151)
๐ Changed
params_*
functions now drop fields withnil
values (#148)- Don't delete
has_many
s fromparams_*
functions (#174)
๐ Fixed
- ๐ Fix an issue where values on embedded associations would not be cast (#200)
- Only drop autogenerated ids (#147)
- ๐ Fix an issue where setting an association to
nil
would breakinsert
(#193) - ๐ Fix an issue where unbuild has_many through associations were not removed in
params_*
functions (#192)