summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-18 12:15:43 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-18 12:15:43 -0600
commit3e106dc7f5fbd6961c67f41aea66033c27b5142f (patch)
tree1cc3c2046a506e8d0bba7cfa300c8d0734cce6ae /app/models
parent717fa996842012a8666bcff985218c2abddd9991 (diff)
Añade spec de products_controller#show
Diffstat (limited to 'app/models')
-rw-r--r--app/models/product.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/product.rb b/app/models/product.rb
index 6e76f75..e6f3720 100644
--- a/app/models/product.rb
+++ b/app/models/product.rb
@@ -21,17 +21,9 @@ class Product < ApplicationRecord
has_one_attached :picture
- # around_create :generate_public_id
-
serialize :categories, Array
def to_param
public_id
end
-
- #private
-
- #def generate_public_id
- # self.public_id = SecureRandom.hex(12)
- #end
end