This project is archived and is in readonly mode.
Changeset [bada18dc36e3875dea1814ffaab1e8d1ac24b521] by Paul Gillard
Revision bada18dc36e3875dea1814ffaab1e8d1ac24b521,
committed by Paul Gillard
· August 4th, 2009 @ 10:23 PM
Added reset_attribute! method to ActiveRecord::AttributeMethods::Dirty which will reset an attribute to its original value should it have changed.
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
2 changed files
-
M
activerecord/lib/active_record/attribute_methods/dirty.rb -
M
activerecord/test/cases/dirty_test.rb