Sha256: 12371261843176e4e5e67d7abaa28bed73d574b59d9b3e1e53642b32e40f1b6d

Contents?: true

Size: 494 Bytes

Versions: 57

Compression:

Stored size: 494 Bytes

Contents

module Comee
  module Core
    class SupplierAddressesController < ApplicationController
      include Common

      def index
        super do
          SupplierAddress.where(supplier_id: params[:id])
        end
      end

      private

      def model_params
        params.require(:payload)
              .permit(:supplier_id, :address_line1, :street, :city, :state, :country_id, :postal_code, :address_type,
                      :email, :telephone, :default)
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
comee_core-0.3.62 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.61 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.60 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.59 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.58 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.57 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.56 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.55 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.54 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.53 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.51 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.50 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.49 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.48 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.47 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.46 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.45 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.44 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.43 app/controllers/comee/core/supplier_addresses_controller.rb
comee_core-0.3.42 app/controllers/comee/core/supplier_addresses_controller.rb