Browse Source

error in variale name

Dalia Carlon 9 năm trước cách đây
mục cha
commit
4620fef8a4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

@@ -353,7 +353,7 @@ class Product < ActiveRecord::Base
     attributes = ""
     unless attributes_json.nil?
       attributes_to_hash.each do |_attr_, value|
-        attributes = attributes.blank? ? values.to_s : attributes.to_s + value.to_s
+        attributes = attributes.blank? ? value.to_s : attributes.to_s + value.to_s
       end
     end
     attributes