Sha256: 0c27014d63cabc9c05bbec53394a13f12abe94e7a8a414414f43bf14c4371d9e

Contents?: true

Size: 315 Bytes

Versions: 15

Compression:

Stored size: 315 Bytes

Contents

module Ecom
  module Core
    class ProjectTemplate < ApplicationRecord
      belongs_to :task_template_type
      has_many :project_work_item_templates

      validates :code, :name, presence: true
      validates_uniqueness_of :code

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ecom_core-1.3.14 app/models/ecom/core/project_template.rb
ecom_core-1.3.13 app/models/ecom/core/project_template.rb
ecom_core-1.3.12 app/models/ecom/core/project_template.rb
ecom_core-1.3.11 app/models/ecom/core/project_template.rb
ecom_core-1.3.10 app/models/ecom/core/project_template.rb
ecom_core-1.3.9 app/models/ecom/core/project_template.rb
ecom_core-1.3.8 app/models/ecom/core/project_template.rb
ecom_core-1.3.7 app/models/ecom/core/project_template.rb
ecom_core-1.3.6 app/models/ecom/core/project_template.rb
ecom_core-1.3.5 app/models/ecom/core/project_template.rb
ecom_core-1.3.4 app/models/ecom/core/project_template.rb
ecom_core-1.3.3 app/models/ecom/core/project_template.rb
ecom_core-1.3.2 app/models/ecom/core/project_template.rb
ecom_core-1.3.1 app/models/ecom/core/project_template.rb
ecom_core-1.3.0 app/models/ecom/core/project_template.rb