0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00
Dieser Commit ist enthalten in:
Angus McLeod 2022-03-16 14:12:13 +01:00
Ursprung ea52b2779b
Commit 61928ce436

Datei anzeigen

@ -7,12 +7,12 @@ class CustomWizard::SubmissionSerializer < ApplicationSerializer
has_one :user, serializer: ::BasicUserSerializer, embed: :objects has_one :user, serializer: ::BasicUserSerializer, embed: :objects
def include_user? def include_user?
object.user.present? object.user.present?
end end
def fields def fields
@fields ||= begin @fields ||= begin
result = {} result = {}
object.wizard.template['steps'].each do |step| object.wizard.template['steps'].each do |step|
step['fields'].each do |field| step['fields'].each do |field|