Acts_as_lockable is a project mainly written in Ruby, based on the MIT license.
ActiveRecord plugin allowing row/table level locking throughout multiple requests.
ActiveRecord plugin allowing row/table level locking throughout multiple requests.
In your model:
class Article
acts_as_lockable
end
Then : @article.lock("John Doe", "Very important update") @article.unlock @article.locked?
Copyright (c) 2010 Olivier Brisse, released under the MIT license