Sha256: dfd1c0c37c64b879bed43cb1dd35a8917f46c6721e014578e95dfd4c23c4c032

Contents?: true

Size: 238 Bytes

Versions: 5

Compression:

Stored size: 238 Bytes

Contents

module Ecom
  module Model
    class Stakeholder < ApplicationRecord
      belongs_to :stakeholder_type

      validates :name, presence: true, uniqueness: true

      delegate :name, to: :stakeholder_type, prefix: true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecom_model-2.0.4 app/models/ecom/model/stakeholder.rb
ecom_model-2.0.3 app/models/ecom/model/stakeholder.rb
ecom_model-2.0.2 app/models/ecom/model/stakeholder.rb
ecom_model-2.0.1 app/models/ecom/model/stakeholder.rb
ecom_model-2.0.0 app/models/ecom/model/stakeholder.rb