diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-05-25 19:02:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-05-25 19:02:28 +0000 |
commit | 85ce903cfa5f13eadef140f82466b258756a44eb (patch) | |
tree | 067b6995cc37076d87769295f2c4b5700bee6570 /app/models/wiki.rb | |
parent | 9c630cc2b72336aed6fa0957b68f1cb598116bf4 (diff) | |
download | redmine-85ce903cfa5f13eadef140f82466b258756a44eb.tar.gz redmine-85ce903cfa5f13eadef140f82466b258756a44eb.zip |
Ability to watch a wiki or a single wiki page (#413).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2765 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r-- | app/models/wiki.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/wiki.rb b/app/models/wiki.rb index be048775a..b31b03482 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -1,5 +1,5 @@ -# redMine - project management software -# Copyright (C) 2006-2007 Jean-Philippe Lang +# Redmine - project management software +# Copyright (C) 2006-2009 Jean-Philippe Lang # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -20,6 +20,8 @@ class Wiki < ActiveRecord::Base has_many :pages, :class_name => 'WikiPage', :dependent => :destroy, :order => 'title' has_many :redirects, :class_name => 'WikiRedirect', :dependent => :delete_all + acts_as_watchable + validates_presence_of :start_page validates_format_of :start_page, :with => /^[^,\.\/\?\;\|\:]*$/ |