Sha256: e7fcce4cde00b86217fdd483589ab77e9ec54ebfd86e0fbf09e3cdaf737cffc5
Contents?: true
Size: 419 Bytes
Versions: 69
Compression:
Stored size: 419 Bytes
Contents
module Ecom module Core class WorkProductTemplate < ApplicationRecord validates :code, :name, presence: true, uniqueness: true belongs_to :task_template has_many :product_types scope :filtered_by_template_type, lambda { |id| joins(:task_template).where('ecom_core_task_templates.task_template_type_id = ?', id) .order(:code) } end end end
Version data entries
69 entries across 69 versions & 1 rubygems