Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [01629d180468049d17a8be6900e27a4f0d2b18c4] by Neeraj Singh

Revision 01629d180468049d17a8be6900e27a4f0d2b18c4, committed by Neeraj Singh · July 8th, 2010 @ 09:43 PM

This patch changes update_attribute implementatino so:

  • it will only save the attribute it has been asked to save and not all dirty attributes

  • it does not invoke callbacks

  • it does change updated_at/on

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/01629d180468049d17a8be6900e27a...

5 changed files

  • M activerecord/lib/active_record/persistence.rb
  • M activerecord/lib/active_record/timestamp.rb
  • M activerecord/test/cases/base_test.rb
  • M activerecord/test/cases/dirty_test.rb
  • M activerecord/test/cases/nested_attributes_test.rb