Why do you care about version_lock value? That field is really for the AR "internal recordkeeping" part of optimistic locking. In .NET, this type of control is handled with a GUID, just to point out that the field value itself is useless outside of the scope of the locking mechanism.
Your thoughts? Peter Fitzgibbons (847) 687-7646 Email: [EMAIL PROTECTED] IM GTalk: peter.fitzgibbons IM Yahoo: pjfitzgibbons IM MSN: [EMAIL PROTECTED] IM AOL: [EMAIL PROTECTED] On Wed, Nov 12, 2008 at 3:42 AM, Mattias Bud < [EMAIL PROTECTED]> wrote: > > Hi > > I have a model which both have optimistic locking and a counter. Is > there any way to disable the version auto increment when only the > counter is updated? > > Lets say I have a post which has many comments. When I add a comment I > don't want the version_lock to be incremented. This happens now because > the post has a comments_count column. > > /mattias > -- > Posted via http://www.ruby-forum.com/. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---