From cced7a8d2512947fec7e05286283d1b7c545d358 Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Fri, 26 Feb 2021 09:53:39 +0530 Subject: [PATCH] minor formatting --- lib/custom_wizard/realtime_validations/similar_topics.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/custom_wizard/realtime_validations/similar_topics.rb b/lib/custom_wizard/realtime_validations/similar_topics.rb index 189054cc..3323a2ee 100644 --- a/lib/custom_wizard/realtime_validations/similar_topics.rb +++ b/lib/custom_wizard/realtime_validations/similar_topics.rb @@ -36,6 +36,7 @@ class CustomWizard::RealtimeValidation::SimilarTopics if time_n_value.to_i > 0 && time_unit.present? topics.select! { |t| t.created_at >= time_n_value.to_i.send(time_unit).ago } end + topics.map! { |t| SimilarTopic.new(t) } result.items = topics