Commit 3c63e766 authored by jplang's avatar jplang
Browse files

Preload members project to prevent multiple cache hits.

git-svn-id: https://svn.redmine.org/redmine/trunk@16898 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 88445f31
<% members = @project.memberships.sorted.to_a %>
<% members = @project.memberships.preload(:project).sorted.to_a %>
<p><%= link_to l(:label_member_new), new_project_membership_path(@project), :remote => true, :class => "icon icon-add" %></p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment