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.44 app/models/comee/core/client.rb
comee_core-0.1.43 app/models/comee/core/client.rb
comee_core-0.1.42 app/models/comee/core/client.rb
comee_core-0.1.41 app/models/comee/core/client.rb
comee_core-0.1.40 app/models/comee/core/client.rb
comee_core-0.1.39 app/models/comee/core/client.rb
comee_core-0.1.38 app/models/comee/core/client.rb
comee_core-0.1.37 app/models/comee/core/client.rb
comee_core-0.1.36 app/models/comee/core/client.rb
comee_core-0.1.35 app/models/comee/core/client.rb
comee_core-0.1.34 app/models/comee/core/client.rb
comee_core-0.1.33 app/models/comee/core/client.rb
comee_core-0.1.32 app/models/comee/core/client.rb
comee_core-0.1.31 app/models/comee/core/client.rb
comee_core-0.1.30 app/models/comee/core/client.rb
comee_core-0.1.29 app/models/comee/core/client.rb
comee_core-0.1.28 app/models/comee/core/client.rb
comee_core-0.1.27 app/models/comee/core/client.rb
comee_core-0.1.26 app/models/comee/core/client.rb
comee_core-0.1.25 app/models/comee/core/client.rb