aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/CHANGELOG.md
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2019-08-01 15:38:03 -0700
committerGitHub <noreply@github.com>2019-08-01 15:38:03 -0700
commita0bb19fbfa590a3a773a24bc018b92fd5ba93b4d (patch)
tree2f8a1f3121b6b777d9e108190c035475ab1dd592 /activemodel/CHANGELOG.md
parent603cd18b0b9a06f0ed25013b3f8f34e524f87925 (diff)
downloadrails-a0bb19fbfa590a3a773a24bc018b92fd5ba93b4d.tar.gz
rails-a0bb19fbfa590a3a773a24bc018b92fd5ba93b4d.tar.bz2
rails-a0bb19fbfa590a3a773a24bc018b92fd5ba93b4d.zip
Add *_previously_was attribute methods when dirty tracking (#36836)
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r--activemodel/CHANGELOG.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index 9d77564c61..c301f4766d 100644
--- a/activemodel/CHANGELOG.md
+++ b/activemodel/CHANGELOG.md
@@ -1,3 +1,9 @@
+* 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*
Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/activemodel/CHANGELOG.md) for previous changes.