Update Type constant

This commit is contained in:
Barnabé 2021-10-14 18:32:53 +02:00
parent cdb200f4a4
commit e911fa598c

View File

@ -1,6 +1,7 @@
class PSpecType < ApplicationRecord
has_many :p_product_ref_specs
TYPES = ["Ram", "Stockage"]
TYPES = self.distinct.pluck(:name)
acts_as_sorting :fields => {
:id => {:name => "ID"},