mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 21:55:20 +08:00
15 lines
212 B
Ruby
15 lines
212 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FormMultipleChoiceFieldValue < FormFieldValue
|
|
def value=(val)
|
|
self.selection = val
|
|
end
|
|
|
|
def value
|
|
selection
|
|
end
|
|
|
|
def formatted
|
|
value.join('|')
|
|
end
|
|
end
|