mirror of
https://github.com/redmine/redmine.git
synced 2024-09-13 15:45:44 +02:00
Preload associations used to display issues on My page.
git-svn-id: http://svn.redmine.org/redmine/trunk@16395 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
28e34e101c
commit
6f6362fe2d
@ -93,13 +93,17 @@ module MyHelper
|
||||
Issue.visible.open.
|
||||
where(:author_id => User.current.id).
|
||||
limit(10).
|
||||
includes(:status, :project, :tracker).
|
||||
includes(:status, :project, :tracker, :priority).
|
||||
references(:status, :project, :tracker).
|
||||
order("#{Issue.table_name}.updated_on DESC")
|
||||
end
|
||||
|
||||
def issueswatched_items
|
||||
Issue.visible.open.on_active_project.watched_by(User.current.id).recently_updated.limit(10)
|
||||
Issue.visible.open.
|
||||
on_active_project.watched_by(User.current.id).
|
||||
preload(:status, :project, :tracker, :priority).
|
||||
recently_updated.
|
||||
limit(10)
|
||||
end
|
||||
|
||||
def news_items
|
||||
|
Loading…
Reference in New Issue
Block a user