Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
13 Zeilen
337 B
Ruby
13 Zeilen
337 B
Ruby
# frozen_string_literal: true
|
|
class CustomWizard::SubmissionSerializer < ApplicationSerializer
|
|
attributes :id,
|
|
:username,
|
|
:fields,
|
|
:submitted_at
|
|
|
|
def username
|
|
object.user.present? ?
|
|
object.user.username :
|
|
I18n.t('admin.wizard.submission.no_user', user_id: object.user_id)
|
|
end
|
|
end
|