rom-rb / rom

Data mapping and persistence toolkit for Ruby
https://rom-rb.org
MIT License
2.09k stars 161 forks source link

Allow specifying timestamps manually when using mappers #484

Closed cgeorgii closed 6 years ago

cgeorgii commented 6 years ago

There was no way to override timestamps when using the :add_timestamps and :touch transformations with changesets.

I discussed it with @flash-gordon and decided to open a PR to add the possibility. I added tests and tried to follow the conventions, but let me know if anything is missing.

Edit: opened a pull request to rom-rb.org as well.

flash-gordon commented 6 years ago

@cgeorgii thanks, looking ❤️