Do you use methods from AR::Dirty (e.g. `changed?`) in after_(create|update|save) callbacks?
-
-
-
Replying to @ObjColumnist
Its surprising behavior for most people. Will possibly be deprecated in 5.1 and changed the next version
1 reply 0 retweets 1 like -
Replying to @sgrif
I would have assumed that the dirty tracking would have been reset at that point, as its after the save.
2 replies 0 retweets 0 likes -
Replying to @ObjColumnist
Dirty is structured as a singly linked list of every known state in 5.0 so we can actually do some interesting things now.
2 replies 0 retweets 0 likes -
Replying to @sgrif
is it common for apps to have multi stage undo, or is it a linked list for another reason?
2 replies 0 retweets 0 likes
Replying to @ObjColumnist
Public API represents at least one snapshot back. Having further is useful for restoring state after transaction revert
2:18 PM - 3 Jun 2016
from Ottawa - Gatineau
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.