Update Type constant
This commit is contained in:
parent
cdb200f4a4
commit
e911fa598c
@ -1,6 +1,7 @@
|
|||||||
class PSpecType < ApplicationRecord
|
class PSpecType < ApplicationRecord
|
||||||
has_many :p_product_ref_specs
|
has_many :p_product_ref_specs
|
||||||
TYPES = ["Ram", "Stockage"]
|
|
||||||
|
TYPES = self.distinct.pluck(:name)
|
||||||
|
|
||||||
acts_as_sorting :fields => {
|
acts_as_sorting :fields => {
|
||||||
:id => {:name => "ID"},
|
:id => {:name => "ID"},
|
||||||
|
Reference in New Issue
Block a user