Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2025-02-16 17:57:01 +01:00
13 Zeilen
Kein EOL
308 B
Ruby
13 Zeilen
Kein EOL
308 B
Ruby
class CustomWizard::SubmissionSerializer
|
|
attributes :id,
|
|
:username,
|
|
:fields,
|
|
:redirect_to,
|
|
:submitted_at
|
|
|
|
def username
|
|
object.user.deleted ?
|
|
I18n.t('admin.wizard.submission.no_user', user_id: object.user.id) :
|
|
object.user.username
|
|
end
|
|
end |