Explorar o código

add confirm on balance order

abiao %!s(int64=4) %!d(string=hai) anos
pai
achega
48f51f317f
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      app/models/product_attr_config.rb

+ 5 - 0
app/models/product_attr_config.rb

@@ -2,6 +2,8 @@ class ProductAttrConfig < ActiveRecord::Base
     has_paper_trail
     self.table_name = 'product_attr_configs'
     belongs_to :product_attr_key, :foreign_key => :attr_key_id
+    belongs_to :product
+
     validates :size_type,:product_id,:product_attr_key,presence:true
     attr_accessor :show_products
 
@@ -24,11 +26,14 @@ class ProductAttrConfig < ActiveRecord::Base
         list do 
             filters [:product_id,:product_attr_key]
             field :id
+=begin
             field :product_id, :enum do
                 enum do
                   PRODUCT_ENUM
                 end
             end
+=end
+            field :product
             field :product_id
             field :product_attr_key
             field :size_type, :enum do