/pool_versions: fix exception in pool diffs.

https://danbooru.donmai.us/forum_topics/9127?page=280#forum_post_159633
This commit is contained in:
evazion
2019-09-10 14:58:12 -05:00
parent e815f46d2a
commit 372fd7df1b
3 changed files with 20 additions and 7 deletions

View File

@@ -3,7 +3,10 @@
<h1>Pool Version Comparison: <%= @pool_version.name %></h1>
<ul>
<li><strong>Posts</strong>: <%= pool_version_diff(@pool_version, @other_version) %></li>
<li>
<strong>Posts</strong>:
<%= render "pool_versions/diff", diff: @pool_version.build_diff(@other_version) %>
</li>
<% if @other_version %>
<li><strong>Old Desc</strong>: <%= @other_version.description %></li>
<% end %>