mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
hide old-style link associations
This commit is contained in:
parent
b0d5c5d055
commit
71cccf983e
@ -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) }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user