summaryrefslogtreecommitdiffstats
path: root/app/models/wiki_content.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-26 17:22:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-26 17:22:27 +0000
commitf12315075fc5780c68093610295ace7ae2c4ac78 (patch)
tree238b51dc311c42a169a35e8e37fd940c31e5ae19 /app/models/wiki_content.rb
parentc99da154452d97e9ffed933e9645db60f66cdf52 (diff)
downloadredmine-f12315075fc5780c68093610295ace7ae2c4ac78.tar.gz
redmine-f12315075fc5780c68093610295ace7ae2c4ac78.zip
Optimistic locking added for wiki edits.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@545 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki_content.rb')
-rw-r--r--app/models/wiki_content.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/wiki_content.rb b/app/models/wiki_content.rb
index b0382cfaf..5b2e7c34e 100644
--- a/app/models/wiki_content.rb
+++ b/app/models/wiki_content.rb
@@ -18,6 +18,7 @@
require 'zlib'
class WikiContent < ActiveRecord::Base
+ set_locking_column :version
belongs_to :page, :class_name => 'WikiPage', :foreign_key => 'page_id'
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
validates_presence_of :text