hide old-style link associations

This commit is contained in:
Andrew Brown 2021-04-25 17:20:01 -07:00
parent b0d5c5d055
commit 71cccf983e

View File

@ -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) }