Skip to content

Commit

Permalink
fix 1 + n on merged stories, even if ugly to do from a view
Browse files Browse the repository at this point in the history
  • Loading branch information
pushcx committed Aug 15, 2019
1 parent a6cd219 commit db3d645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/stories/_listdetail.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %>
<% end %>

<% if defined?(single_story) && single_story %>
<% story.merged_stories.not_deleted.each do |ms| %>
<% story.merged_stories.not_deleted.includes(:user, :tags).each do |ms| %>
<br>
<span class="merge"></span>
<span class="link">
Expand Down

0 comments on commit db3d645

Please sign in to comment.