Commit b897409b authored by jplang's avatar jplang

Preload :roles for displaying user memberships (#23519).

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6bf5831d
<% memberships = principal.memberships.preload(:member_roles => :role).sorted_by_project.to_a %>
<% memberships = principal.memberships.preload(:member_roles, :roles).sorted_by_project.to_a %>
<p><%= link_to l(:label_add_projects), new_principal_membership_path(principal), :remote => true, :class => "icon icon-add" %></p>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment