clair_app/app/models/p_product_feature.rb
Nicolas Bally c2f8ec2efb initial
2020-10-10 00:28:38 +02:00

19 lines
325 B
Ruby

class PProductFeature < ApplicationRecord
belongs_to :p_product_feature_cat
belongs_to :p_product_ref
validates :p_product_feature_cat_id, :presence => true
def ca_name
self.p_product_feature_cat.name if self.p_product_feature_cat
end
QI_DYNAMICS = %w(name)
eval(QI_DYNAMICS_CORE)
end