diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-01-30 11:12:46 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-01-30 11:12:46 +0100 |
commit | 02f9f3314244513fce0a94acef08318d67d6707f (patch) | |
tree | eb6ca8eb46d99449a4f1c26dbe11a9ad0fadbb67 /activemodel | |
parent | 9632c986b4df02cc6c51dbbc2768403bd8e8c07f (diff) | |
download | rails-02f9f3314244513fce0a94acef08318d67d6707f.tar.gz rails-02f9f3314244513fce0a94acef08318d67d6707f.tar.bz2 rails-02f9f3314244513fce0a94acef08318d67d6707f.zip |
tidy CHANGELOGs [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/CHANGELOG.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index 0148066bac..6585808fa2 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -18,9 +18,12 @@ *Vince Puzzella* -* `attribute_changed?` now accepts parameters which check the old and new value of the attribute +* `attribute_changed?` now accepts a hash to check if the attribute was + changed `:from` and/or `:to` a given value. - `model.name_changed?(from: "Pete", to: "Ringo")` + Example: + + model.name_changed?(from: "Pete", to: "Ringo") *Tejas Dinkar* |