dm-optlock v 0.1.4

Posted by Moser on 10 Jan 2009

Update: dm-optlock now on github

I released a new version of dm-optlock. It is NOT compatible with v 0.1.2’s code, because replaced the set_locking_column method by a method called add_locking_column. Your DB should be compatible.

class Model
  include DataMapper::Resource
  add_locking_column :my_version_col

It takes a options hash just like DataMapper’s property method does. I added it to enforce some options on the locking column.