30 Sep '13, 8am

地味に便利なのよねー。/ActiveModel::Dirty

If an attribute is modified in-place then make use of [attribute_name]_will_change! to mark that the attribute is changing. Otherwise ActiveModel can’t track changes to in-place attributes.

Full article: http://api.rubyonrails.org/classes/ActiveModel/Dirty.html

Tweets