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 end
It takes a options hash just like DataMapper’s property method does. I added it to enforce some options on the locking column.