Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
Apply rubocop
Dieser Commit ist enthalten in:
Ursprung
ea52b2779b
Commit
61928ce436
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -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|
|
||||||
|
|
Laden …
In neuem Issue referenzieren