add eager loading repositories
This commit is contained in:
parent
edfdb960c9
commit
46c75e17ef
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue