Sha256: a6ffff5068882cd231d3a97321575e784d9a1179d8fbf0382685d20c06cb378c

Contents?: true

Size: 274 Bytes

Versions: 11

Compression:

Stored size: 274 Bytes

Contents

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

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
comee_core-0.1.22 app/models/comee/core/client.rb
comee_core-0.1.21 app/models/comee/core/client.rb
comee_core-0.1.20 app/models/comee/core/client.rb
comee_core-0.1.19 app/models/comee/core/client.rb
comee_core-0.1.18 app/models/comee/core/client.rb
comee_core-0.1.17 app/models/comee/core/client.rb
comee_core-0.1.16 app/models/comee/core/client.rb
comee_core-0.1.15 app/models/comee/core/client.rb
comee_core-0.1.14 app/models/comee/core/client.rb
comee_core-0.1.13 app/models/comee/core/client.rb
comee_core-0.1.12 app/models/comee/core/client.rb