This project is archived and is in readonly mode.

#5505 ✓resolved
jlewalle (at gmail)

ActiveRecord::Base.touch won't dump optimistic locking column.

Reported by jlewalle (at gmail) | August 30th, 2010 @ 11:21 PM

Calling touch on an object to increase the updated_at won't increase the optimistic locking column.

From a quick glance over the history I think that this:

http://github.com/rails/rails/commit/e4943e93c2571cba8630eec2e77000...

is the source of my problem... Bypassing update_attribute won't allow the optimistic locking's update to be called.

I am very eager to start using v3 and this is a major stumbling block for me.

Comments and changes to this ticket

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>

Referenced by

Pages