Update Type constant
This commit is contained in:
parent
cdb200f4a4
commit
e911fa598c
@ -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"},
|
||||
|
Reference in New Issue
Block a user