diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-06 12:54:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-06 12:54:13 +0000 |
commit | 8fb29d4d211ac09549cf47fad764b56c9173e938 (patch) | |
tree | c8d2602d42bda89397d75aa0344f2b47dcf7cc4b /app/models/message.rb | |
parent | 2ad8242ae782ea9d87a0d98f8563199da736bdc7 (diff) | |
download | redmine-8fb29d4d211ac09549cf47fad764b56c9173e938.tar.gz redmine-8fb29d4d211ac09549cf47fad764b56c9173e938.zip |
Adds pagination to forum messages (#4664).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3373 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/message.rb')
-rw-r--r-- | app/models/message.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/message.rb b/app/models/message.rb index 1e59719dd..3744c239b 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -30,7 +30,7 @@ class Message < ActiveRecord::Base :description => :content, :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}"})} + {:id => o.parent_id, :r => o.id, :anchor => "message-#{o.id}"})} acts_as_activity_provider :find_options => {:include => [{:board => :project}, :author]}, :author_key => :author_id |