abiao лет назад: 5
Родитель
Сommit
1c00dcaafb
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/models/product_attr_config.rb

+ 1 - 0
app/models/product_attr_config.rb

@@ -3,6 +3,7 @@ class ProductAttrConfig < ActiveRecord::Base
     self.table_name = 'product_attr_configs'
     self.table_name = 'product_attr_configs'
     belongs_to :product_attr_key, :foreign_key => :attr_key_id
     belongs_to :product_attr_key, :foreign_key => :attr_key_id
     validates :size_type,presence:true
     validates :size_type,presence:true
+    attr_accessor :show_products
 
 
 
 
     def show_products
     def show_products