From 4883d85d56be2b83080073a6ab3e53d9212a3d1b Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Thu, 11 Feb 2021 22:35:04 +0530 Subject: [PATCH] renamed the validator --- ...ggested-validator.js.es6 => similar-topics-validator.js.es6} | 0 .../{suggested-validator.hbs => similar-topics-validator.hbs} | 0 lib/custom_wizard/realtime_validation.rb | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename assets/javascripts/wizard/components/{suggested-validator.js.es6 => similar-topics-validator.js.es6} (100%) rename assets/javascripts/wizard/templates/components/{suggested-validator.hbs => similar-topics-validator.hbs} (100%) diff --git a/assets/javascripts/wizard/components/suggested-validator.js.es6 b/assets/javascripts/wizard/components/similar-topics-validator.js.es6 similarity index 100% rename from assets/javascripts/wizard/components/suggested-validator.js.es6 rename to assets/javascripts/wizard/components/similar-topics-validator.js.es6 diff --git a/assets/javascripts/wizard/templates/components/suggested-validator.hbs b/assets/javascripts/wizard/templates/components/similar-topics-validator.hbs similarity index 100% rename from assets/javascripts/wizard/templates/components/suggested-validator.hbs rename to assets/javascripts/wizard/templates/components/similar-topics-validator.hbs diff --git a/lib/custom_wizard/realtime_validation.rb b/lib/custom_wizard/realtime_validation.rb index b5df6a9e..72aa5065 100644 --- a/lib/custom_wizard/realtime_validation.rb +++ b/lib/custom_wizard/realtime_validation.rb @@ -1,7 +1,7 @@ class CustomWizard::RealtimeValidation cattr_accessor :types @@types ||= { - similar_topics: { types: [:text], component: "suggested-validator", backend: true, required_params: [] } + similar_topics: { types: [:text], component: "similar-topics-validator", backend: true, required_params: [] } } class SimilarTopic