diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-27 17:54:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-27 17:54:09 +0000 |
commit | a774c5c48b5e596770340b6ac27ea9f0a1e1141f (patch) | |
tree | 7c0ab261c09324cbef711cba9ab3400d3c610cc2 /app/models/message.rb | |
parent | 1721376542af256263d605a16c3981eca9e3733a (diff) | |
download | redmine-a774c5c48b5e596770340b6ac27ea9f0a1e1141f.tar.gz redmine-a774c5c48b5e596770340b6ac27ea9f0a1e1141f.zip |
Activity refactoring.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1701 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/message.rb')
-rw-r--r-- | app/models/message.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/message.rb b/app/models/message.rb index 888bffcc3..80df7a33a 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -31,7 +31,9 @@ class Message < ActiveRecord::Base :type => Proc.new {|o| o.parent_id.nil? ? 'message' : 'reply'}, :url => Proc.new {|o| {:controller => 'messages', :action => 'show', :board_id => o.board_id}.merge(o.parent_id.nil? ? {:id => o.id} : {:id => o.parent_id, :anchor => "message-#{o.id}"})} - + + acts_as_activity_provider :find_options => {:include => [{:board => :project}, :author]} + attr_protected :locked, :sticky validates_presence_of :subject, :content validates_length_of :subject, :maximum => 255 |