diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-10-24 02:18:45 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-10-24 02:18:45 +0000 |
commit | 6f92548b38ab1f651b20b4b0696f0aee28eb430b (patch) | |
tree | 6944e071a19bc2dda0e0d57ccb4a17d1cbc4b211 /app/controllers/boards_controller.rb | |
parent | 374f4dd52e1370db0e60e2bc035513c7cd5bb8fa (diff) | |
download | redmine-6f92548b38ab1f651b20b4b0696f0aee28eb430b.tar.gz redmine-6f92548b38ab1f651b20b4b0696f0aee28eb430b.zip |
remove unneeded "references" of joins
"references" is needed for includes, but not needed for joins.
git-svn-id: http://svn.redmine.org/redmine/trunk@13501 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/boards_controller.rb')
-rw-r--r-- | app/controllers/boards_controller.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index 04bdb56c0..c1ac10c4f 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -46,7 +46,6 @@ class BoardsController < ApplicationController @topics = @board.topics. reorder("#{Message.table_name}.sticky DESC"). joins("LEFT OUTER JOIN #{Message.table_name} last_replies_messages ON last_replies_messages.id = #{Message.table_name}.last_reply_id"). - references(:last_reply). limit(@topic_pages.per_page). offset(@topic_pages.offset). order(sort_clause). |