diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-13 19:43:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-13 19:43:35 +0000 |
commit | bca5bd9c62769ca85f00259ac0e9a3c4538f7051 (patch) | |
tree | a14630132f58878681cc416aa86b20a8d448923c /app/models/board.rb | |
parent | b90e84b9fe252df464d084f0222c65367407a4ba (diff) | |
download | redmine-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.rb | 1 |
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 |