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 to 0 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 with nil values (#148)
    • Don't delete has_manys from params_* 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 break insert (#193)
    • ๐Ÿ›  Fix an issue where unbuild has_many through associations were not removed in params_* functions (#192)