posts/show: avoid favgroup exists query.

This commit is contained in:
evazion
2020-02-29 12:55:18 -06:00
parent cded0f763b
commit ba66ca62c4

View File

@@ -1,4 +1,4 @@
<% if CurrentUser.favorite_groups.empty? %>
<% if !CurrentUser.favorite_groups.present? %>
<p>Add this post to a new a favorite group (<%= link_to_wiki "help:favorite_groups" %>):</p>
<%= edit_form_for(FavoriteGroup.new, html: { class: "one-line-form" }) do |f| %>