Explorar o código

error in variale name

Dalia Carlon %!s(int64=9) %!d(string=hai) anos
pai
achega
4620fef8a4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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