mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 14:15:35 +08:00
15 lines
271 B
Ruby
15 lines
271 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FormActionFieldValue < FormFieldValue
|
|
def value=(val)
|
|
self.flag = val
|
|
end
|
|
|
|
def value
|
|
flag
|
|
end
|
|
|
|
def formatted
|
|
flag ? I18n.t('forms.export.values.completed') : I18n.t('forms.export.values.not_completed')
|
|
end
|
|
end
|