mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 14:15:35 +08:00
15 lines
322 B
Ruby
15 lines
322 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FormResponseSerializer < ActiveModel::Serializer
|
|
include Canaid::Helpers::PermissionsHelper
|
|
|
|
attributes :id, :created_at, :form_id
|
|
|
|
has_many :form_field_values do
|
|
object.form_field_values.latest
|
|
end
|
|
|
|
def submitted_by_full_name
|
|
object.submitted_by.full_name
|
|
end
|
|
end
|