mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-12 09:20:45 +08:00
12 lines
365 B
Ruby
12 lines
365 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FormFieldValueSerializer < ActiveModel::Serializer
|
|
include Canaid::Helpers::PermissionsHelper
|
|
|
|
attributes :form_field_id, :type, :value, :submitted_at, :submitted_by_full_name,
|
|
:unit, :not_applicable, :selection, :datetime, :datetime_to
|
|
|
|
def submitted_by_full_name
|
|
object.submitted_by.full_name
|
|
end
|
|
end
|