Class: Logistics::Core::ClientsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Logistics::Core::ClientsController
- Includes:
- ControllerCommon, LookupList
- Defined in:
- app/controllers/logistics/core/clients_controller.rb
Instance Method Summary collapse
Methods included from LookupList
Methods included from ControllerCommon
Instance Method Details
#index ⇒ Object
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 |