Browse Source

error in variale name

Dalia Carlon 9 years ago
parent
commit
4620fef8a4
1 changed files with 1 additions and 1 deletions
  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