From b37bd54bcc599a61cc57bb6f6cd8ae6d41ad90c0 Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Mon, 17 May 2021 01:32:52 +0530 Subject: [PATCH] fix rubocop issues --- controllers/custom_wizard/admin/wizard.rb | 4 ++-- lib/custom_wizard/builder.rb | 8 ++++---- lib/custom_wizard/template.rb | 4 ++-- lib/custom_wizard/validators/template.rb | 6 +++--- lib/custom_wizard/wizard.rb | 2 +- serializers/custom_wizard/wizard_field_serializer.rb | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/controllers/custom_wizard/admin/wizard.rb b/controllers/custom_wizard/admin/wizard.rb index 9909bf1d..32810afa 100644 --- a/controllers/custom_wizard/admin/wizard.rb +++ b/controllers/custom_wizard/admin/wizard.rb @@ -65,8 +65,8 @@ class CustomWizard::AdminWizardController < CustomWizard::AdminController output: [], ] end - - ## + + ## # type: step # number: 3 # title: Add a permitted parameter diff --git a/lib/custom_wizard/builder.rb b/lib/custom_wizard/builder.rb index 683a84b6..6f0cb960 100644 --- a/lib/custom_wizard/builder.rb +++ b/lib/custom_wizard/builder.rb @@ -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 = { diff --git a/lib/custom_wizard/template.rb b/lib/custom_wizard/template.rb index 81ea0a90..a11bd4a0 100644 --- a/lib/custom_wizard/template.rb +++ b/lib/custom_wizard/template.rb @@ -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 diff --git a/lib/custom_wizard/validators/template.rb b/lib/custom_wizard/validators/template.rb index 77efc076..21d8ef90 100644 --- a/lib/custom_wizard/validators/template.rb +++ b/lib/custom_wizard/validators/template.rb @@ -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 diff --git a/lib/custom_wizard/wizard.rb b/lib/custom_wizard/wizard.rb index e74fa1ce..5967e013 100644 --- a/lib/custom_wizard/wizard.rb +++ b/lib/custom_wizard/wizard.rb @@ -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 diff --git a/serializers/custom_wizard/wizard_field_serializer.rb b/serializers/custom_wizard/wizard_field_serializer.rb index 16563618..9b273da3 100644 --- a/serializers/custom_wizard/wizard_field_serializer.rb +++ b/serializers/custom_wizard/wizard_field_serializer.rb @@ -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