Sha256: 9df7b0144d17ca536e436e2bed4f713b1a804c27a08561879c866a28b705e377

Contents?: true

Size: 495 Bytes

Versions: 9

Compression:

Stored size: 495 Bytes

Contents

require_dependency 'application_controller'

module Logistics
  module Core
    class CustomsOfficesController < ApplicationController
      include ControllerCommon

      def index
        customs_offices = CustomsOffice.all
        response = Mks::Common::MethodResponse.new(true, nil, customs_offices, nil, nil)
        render json: response
      end


      private

      def model_params
        params.require(:customs_office).permit(:code, :name, :location)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 app/controllers/logistics/core/customs_offices_controller.rb
logistics_core-21.11.1 app/controllers/logistics/core/customs_offices_controller.rb
logistics_core-21.08.1 app/controllers/logistics/core/customs_offices_controller.rb
logistics_core-21.03.1 app/controllers/logistics/core/customs_offices_controller.rb
logistics_core-20.10.3 app/controllers/logistics/core/customs_offices_controller.rb
logistics_core-20.10.2 app/controllers/logistics/core/customs_offices_controller.rb
logistics_core-20.10.1 app/controllers/logistics/core/customs_offices_controller.rb
logistics_core-20.9.1 app/controllers/logistics/core/customs_offices_controller.rb
logistics_core-20.8.1 app/controllers/logistics/core/customs_offices_controller.rb