
Model.reload does not reset dirty-ness
Reported by Jordan Ritter | October 22nd, 2009 @ 07:58 PM | in 0.10.2
Calling Model#reload results in a re-selecting of the original model data from the database (expected).
But, if Model#dirty? == true before Model#reload was invoked, still Model#dirty? == true. I'd expect it to be clean after a reload.
Repro script and output: https://gist.github.com/dd0ffe35fe47e5e9d26d
dm-core/next @ f1de567 (from today)
Comments and changes to this ticket
-
Dan Kubb (dkubb) November 10th, 2009 @ 01:17 AM
- State changed from new to resolved
- Milestone set to 0.10.2
This should be resolved as of commit:
http://github.com/datamapper/dm-core/commit/6f574839b0f1a1e4e0d3e56...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »