From 71cccf983ef8eccf952b72b866a44302ed5fdc77 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sun, 25 Apr 2021 17:20:01 -0700 Subject: [PATCH] hide old-style link associations --- app/views/content/panels/_associations.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/content/panels/_associations.html.erb b/app/views/content/panels/_associations.html.erb index 2db259b9..1ea953bf 100644 --- a/app/views/content/panels/_associations.html.erb +++ b/app/views/content/panels/_associations.html.erb @@ -31,6 +31,7 @@ <%# TODO: remove these after writing link migration script %> <% relations.each do |name, params| %> + <% next %> <% results = params[:related_class].where("#{params[:through_relation].downcase}_id": content.id) .map { |content| content.send(params[:inverse_class].downcase) }