summaryrefslogtreecommitdiffstats
path: root/app/models/board.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-13 19:43:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-13 19:43:35 +0000
commitbca5bd9c62769ca85f00259ac0e9a3c4538f7051 (patch)
treea14630132f58878681cc416aa86b20a8d448923c /app/models/board.rb
parentb90e84b9fe252df464d084f0222c65367407a4ba (diff)
downloadredmine-bca5bd9c62769ca85f00259ac0e9a3c4538f7051.tar.gz
redmine-bca5bd9c62769ca85f00259ac0e9a3c4538f7051.zip
Added watchers for message boards (watchers controller modified to support any watchable model).
No notification yet when a new message is posted. git-svn-id: http://redmine.rubyforge.org/svn/trunk@530 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/board.rb')
-rw-r--r--app/models/board.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/board.rb b/app/models/board.rb
index a6ea22f67..26e2004d3 100644
--- a/app/models/board.rb
+++ b/app/models/board.rb
@@ -21,6 +21,7 @@ class Board < ActiveRecord::Base
has_many :messages, :dependent => :delete_all, :order => "#{Message.table_name}.created_on DESC"
belongs_to :last_message, :class_name => 'Message', :foreign_key => :last_message_id
acts_as_list :scope => :project_id
+ acts_as_watchable
validates_presence_of :name, :description
validates_length_of :name, :maximum => 30