Sha256: e7efea536cfc10e3e3b3d3e472dd8120cac5d454964f33c35b435d91b5fb3dc5

Contents?: true

Size: 310 Bytes

Versions: 22

Compression:

Stored size: 310 Bytes

Contents

module Comee
  module Core
    class Client < ApplicationRecord
      belongs_to :user, optional: true
      has_many :warehouse_shipments

      validates :code, :name, :address, :locale, presence: true
      validates :code, uniqueness: true

      delegate(:name, to: :user, prefix: true)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
comee_core-0.1.24 app/models/comee/core/client.rb
comee_core-0.1.23 app/models/comee/core/client.rb