ex_machina v2.0.0 Release Notes

Release Date: 2017-03-03 // almost 3 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)