diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-16 21:53:23 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-16 21:53:23 -0600 |
commit | 69153b46eee0fec67efa66f9b5f0499730a98829 (patch) | |
tree | f07d8de984911fcf6d684b06ae69516cc9aa2b43 /app/models/product.rb | |
parent | ec60f7fb4be7213174f150318e418cdd8832a39b (diff) |
Mejorado código de ProductsController
Diffstat (limited to 'app/models/product.rb')
-rw-r--r-- | app/models/product.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/models/product.rb b/app/models/product.rb index 87a7a71..6e76f75 100644 --- a/app/models/product.rb +++ b/app/models/product.rb @@ -21,7 +21,7 @@ class Product < ApplicationRecord has_one_attached :picture - around_create :generate_public_id + # around_create :generate_public_id serialize :categories, Array @@ -29,9 +29,9 @@ class Product < ApplicationRecord public_id end - private + #private - def generate_public_id - self.public_id = SecureRandom.hex(12) - end + #def generate_public_id + # self.public_id = SecureRandom.hex(12) + #end end |