This project is archived and is in readonly mode.

Changeset [bada18dc36e3875dea1814ffaab1e8d1ac24b521] 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...

Committed by Paul Gillard

  • M activerecord/lib/active_record/attribute_methods/dirty.rb
  • M activerecord/test/cases/dirty_test.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>