diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-17 11:35:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-17 11:35:42 +0000 |
commit | d8e4a8fb320625474e20901b4070763bd697807a (patch) | |
tree | 8012a67044ef6f463a4e07b256acc956ff226d36 /app/controllers/messages_controller.rb | |
parent | c17ec1643c005036870b45c7b496bbbb3a9784be (diff) | |
download | redmine-d8e4a8fb320625474e20901b4070763bd697807a.tar.gz redmine-d8e4a8fb320625474e20901b4070763bd697807a.zip |
Use #per_page instead of #items_per_page.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11425 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/messages_controller.rb')
-rw-r--r-- | app/controllers/messages_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index f2e69697a..b29b64e34 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -44,7 +44,7 @@ class MessagesController < ApplicationController @replies = @topic.children. includes(:author, :attachments, {:board => :project}). reorder("#{Message.table_name}.created_on ASC"). - limit(@reply_pages.items_per_page). + limit(@reply_pages.per_page). offset(@reply_pages.offset). all |