Browse Source

Optimize request

master
Norore 4 years ago
parent
commit
88aa119015
  1. 2
      app/controllers/sites_controller.rb

2
app/controllers/sites_controller.rb

@ -1,6 +1,6 @@
class SitesController < ApplicationController
def index
@sites = Site.all.distinct.order(:group_id, :url)
@sites = Site.all.includes(:group).order(:group_id, :url)
end
def show

Loading…
Cancel
Save