1
0
Fork 0

fix rubocop issues

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-05-17 01:32:52 +05:30
Ursprung 5213c3e6cd
Commit b37bd54bcc
6 geänderte Dateien mit 14 neuen und 14 gelöschten Zeilen

Datei anzeigen

@ -65,8 +65,8 @@ class CustomWizard::AdminWizardController < CustomWizard::AdminController
output: [],
]
end
##
##
# type: step
# number: 3
# title: Add a permitted parameter

Datei anzeigen

@ -78,14 +78,14 @@ class CustomWizard::Builder
@wizard.update_step_order!
@wizard
end
##
##
# type: step
# number: 7
# title: Add it to the builder
# description: When our template is built into a wizard, we need our new
# description: When our template is built into a wizard, we need our new
# attribute to be built here in the builder so it's ready to
# be sent to the wizard client.
# be sent to the wizard client.
##
def append_field(step, step_template, field_template, build_opts)
params = {

Datei anzeigen

@ -13,8 +13,8 @@ class CustomWizard::Template
@steps = data['steps'] || []
@actions = data['actions'] || []
end
##
##
# type: step
# number: 4
# title: Our new field is saved to the template

Datei anzeigen

@ -8,14 +8,14 @@ class CustomWizard::TemplateValidator
@opts = opts
end
##
##
# type: step
# number: 5
# title: Add a template validation (optional)
# description: If our new attribute requires validation of a value entered
# description: If our new attribute requires validation of a value entered
# during administration of a wizard that should be handled here.
# Template validators are run before the template is saved to
# the database.
# the database.
##
def perform
data = @data

Datei anzeigen

@ -6,7 +6,7 @@ require_dependency 'wizard/builder'
UserHistory.actions[:custom_wizard_step] = 1000
##
##
# type: step
# number: 6
# title: Add the parameter to the wizard model

Datei anzeigen

@ -1,10 +1,10 @@
# frozen_string_literal: true
##
##
# type: step
# number: 8
# title: Add it to the serializer
# description: We want our new attribute to be serialized to the wizard client...
# description: We want our new attribute to be serialized to the wizard client...
##
class CustomWizard::FieldSerializer < ::ApplicationSerializer