Class: Logistics::Core::ClientsController

Inherits:
ApplicationController show all
Includes:
ControllerCommon, LookupList
Defined in:
app/controllers/logistics/core/clients_controller.rb

Instance Method Summary collapse

Methods included from LookupList

#lookup

Methods included from ControllerCommon

#create, #update

Instance Method Details

#indexObject



10
11
12
13
14
15
# File 'app/controllers/logistics/core/clients_controller.rb', line 10

def index
  clients = Client.includes(:client_category, :country).order(:name)
  data = ApplicationRecord.as_json(clients)
  response = Mks::Common::MethodResponse.new(true, nil, data, nil)
  render json: response
end