Parcourir la source

error in variale name

Dalia Carlon il y a 9 ans
Parent
commit
4620fef8a4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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