pluck existing unit in form
This commit is contained in:
parent
40c2de5587
commit
c691229555
@ -1,7 +1,7 @@
|
||||
class PSpecValue < ApplicationRecord
|
||||
has_many :p_product_ref_specs
|
||||
|
||||
UNITS = ["Go", "Mo"]
|
||||
UNITS = self.distinct.pluck(:unit)
|
||||
|
||||
def member_label
|
||||
"#{value} #{unit}"
|
||||
|
Reference in New Issue
Block a user