Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add *_previously_was attribute methods when dirty tracking #36836

merged 2 commits into from Aug 1, 2019


Copy link

commented Aug 1, 2019

Add *_previously_was attribute methods when dirty tracking. Example:

pirate.update(catchphrase: "Ahoy!")
pirate.previous_changes["catchphrase"] # => ["Thar She Blows!", "Ahoy!"]
pirate.catchphrase_previously_was # => "Thar She Blows!"

@dhh dhh merged commit a0bb19f into master Aug 1, 2019

2 checks passed

buildkite/rails Build #62788 passed (7 minutes, 53 seconds)
codeclimate All good!

@dhh dhh deleted the attribute_previously_was branch Aug 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.