about summary refs log tree commit diff
path: root/app/controllers/admin/instances_controller.rb
blob: b8f170ec28555ea9f50d623d5d315898b67d686f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Admin
  class InstancesController < BaseController
    def index
      @instances = ordered_instances.page(params[:page])
    end

    private

    def ordered_instances
      Account.remote.by_domain_accounts
    end
  end
end