From 37b957dbbb234e4b0860973e88b221b6f2663bf1 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Thu, 11 Jan 2024 13:52:50 +1000 Subject: [PATCH] DEV: Fix SemanticRelated module load error (#419) Followup 2636efcd1bf6eaa0a6d0d868affb9d41d49bdda2, whenever ruby code was changed locally this would break module loading, giving an "uninitialized constant DiscourseAi::Embeddings::EntryPoint::SemanticRelated" error. --- app/views/list/related_topics.html.erb | 24 ++++++++++++------------ lib/embeddings/entry_point.rb | 2 +- spec/requests/topic_spec.rb | 24 +++++++++++++++++++----- 3 files changed, 32 insertions(+), 18 deletions(-) diff --git a/app/views/list/related_topics.html.erb b/app/views/list/related_topics.html.erb index bd7cb4c7..7ac68473 100644 --- a/app/views/list/related_topics.html.erb +++ b/app/views/list/related_topics.html.erb @@ -15,23 +15,23 @@ - <% @list.each_with_index do |t,i| %> - + <% @list.each_with_index do |topic, idx| %> + - + - +