Sha256: 6a51132cdbb4099b1a5158f9efff7cbda93a2d52e0cdc96a87b2e456a98f5e6a

Contents?: true

Size: 426 Bytes

Versions: 10

Compression:

Stored size: 426 Bytes

Contents

module Comee
  module Core
    class ClientAddressesController < ApplicationController
      include Common

      def index
        super do
          ClientAddress.where(client_id: params[:id])
        end
      end

      private

      def model_params
        params.require(:payload).permit(:client_id, :name, :address_line1, :street, :city, :state, :country_id, :postal_code, :address_type)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
comee_core-0.2.90 app/controllers/comee/core/client_addresses_controller.rb
comee_core-0.2.89 app/controllers/comee/core/client_addresses_controller.rb
comee_core-0.2.88 app/controllers/comee/core/client_addresses_controller.rb
comee_core-0.2.87 app/controllers/comee/core/client_addresses_controller.rb
comee_core-0.2.86 app/controllers/comee/core/client_addresses_controller.rb
comee_core-0.2.85 app/controllers/comee/core/client_addresses_controller.rb
comee_core-0.2.84 app/controllers/comee/core/client_addresses_controller.rb
comee_core-0.2.83 app/controllers/comee/core/client_addresses_controller.rb
comee_core-0.2.82 app/controllers/comee/core/client_addresses_controller.rb
comee_core-0.2.81 app/controllers/comee/core/client_addresses_controller.rb