diff options
author | Tejas Dinkar <tejas@gja.in> | 2013-12-02 10:20:43 +0530 |
---|---|---|
committer | Tejas Dinkar <tejas@gja.in> | 2013-12-15 12:13:31 +0530 |
commit | da2b05bb6b713a702eb0420079394bf273f1203e (patch) | |
tree | 854ece5341e6b41f45af5842fef164544a35e3b2 /tools | |
parent | fc83efae516fc572551b3f1d67a12394800dd4e2 (diff) | |
download | rails-da2b05bb6b713a702eb0420079394bf273f1203e.tar.gz rails-da2b05bb6b713a702eb0420079394bf273f1203e.tar.bz2 rails-da2b05bb6b713a702eb0420079394bf273f1203e.zip |
Allows you to check if an attribute has changed to a particular value
model.name_changed?(from: "Pete", to: "Ringo")
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions