Remove URL methods in models
We can use `polymorphic_path` since commit ff93f5a591.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div>
|
||||
<span class="related-content-title"><%= t("related_content.content_title.#{related.model_name.singular}") %></span><br>
|
||||
<h3 class="inline-block">
|
||||
<%= link_to related.title, related.url %>
|
||||
<%= link_to related.title, polymorphic_path(related) %>
|
||||
</h3>
|
||||
</div>
|
||||
<% if current_user && related_content.author != current_user && !related_content.scored_by_user?(current_user) %>
|
||||
|
||||
Reference in New Issue
Block a user