add eager loading repositories

This commit is contained in:
Alexander Machehin 2013-08-06 23:24:33 +06:00
parent edfdb960c9
commit 46c75e17ef
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module BuildListsHelper
def availables_main_platforms
# Main platforms with repositories
Platform.main.accessible_by(current_ability, :show)
.joins(:repositories).uniq
.includes(:repositories).order(:name).uniq
end
def save_to_repositories(project)