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
I just assumed it was a hash (or custom equivalent) with the attributes that have been set between fetching and saving the record.
2 replies 0 retweets 0 likes
Replying to @ObjColumnist
Mutation is a thing in Ruby.
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.