ActiveModel::Dirty patch for multiple assignments to the same attribute #1897

merged 1 commit into from Jun 29, 2011


None yet

1 participant

ghost commented Jun 29, 2011

Originally, multiple assignments to the same attribute would overwrite the 'original' value. For example, assigning new values to an attribute three times and then calling _changes or _was would return the second most recent assignment, not the original value. (The new test case makes the situation a little clearer.)

@josevalim josevalim merged commit 4106245 into rails:master Jun 29, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment