From 8fb29d4d211ac09549cf47fad764b56c9173e938 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 6 Feb 2010 12:54:13 +0000 Subject: Adds pagination to forum messages (#4664). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3373 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/message.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/message.rb') 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 -- cgit v1.2.3