Ex_Money v3.2.1 Release Notes
-
๐ This is the changelog for Money v3.2.1 released on February 2nd, 2019. For older changelogs please consult the release tag on GitHub
๐ Bug Fixes
โ Added
Money.Ecto.Composite.Type.cast/1
andMoney.Ecto.Map.Type.cast/1
for aString.t
parameter. When aString.t
is provided,cast/1
will callMoney.parse/2
to create theMoney.t
.0๏ธโฃ
Money.new/3
now uses the current locale on the default backend if no locale or backend is specified. This means thatMoney.Ecto.Composite.Type.cast/1
andMoney.Ecto.Map.Type.cast/1
will be parsed using the locale that has been set for the current process in the default backend. As a result, a simpletype=text
form field can be used to input a money type (currency code and amount in a single string) that can then be cast to aMoney.t
.