forked from elixirmoney/money
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: {Currency.Type.dump/1} missing ISO string support
The callback 'cast/1' is only called when loading native types from the database for some reason, what's counter-intuitive IMO. I did check Ecto's docs and it states that it's 'dump/1's reponsability to validate and convert the given value to a native time, that's why I'm considering this a bugfix. See {https://hexdocs.pm/ecto/Ecto.Type.html\#c:dump/1}.
- Loading branch information
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters