Skip to content

Commit

Permalink
Replace only_deleted method with discarded
Browse files Browse the repository at this point in the history
We're replacing Paranoia with Discard. This replaces paranoia' method
'only_deleted' with 'discarded' which is the equivalent method
provided by discard.
  • Loading branch information
cedum committed Mar 13, 2020
1 parent ea916d5 commit e8db716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
</div>

<% if product.variants.only_deleted.any? %>
<% if product.variants.discarded.any? %>
<div class="col-2">
<div class="field checkbox">
<label>
Expand Down
2 changes: 1 addition & 1 deletion backend/app/views/spree/admin/variants/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<% end %>
<% end %>

<% if @variants.any? || @product.variants.only_deleted.any?%>
<% if @variants.any? || @product.variants.discarded.any?%>
<%= render "table_filter", product: @product %>
<%= render "table", variants: @variants %>
<% else %>
Expand Down

0 comments on commit e8db716

Please sign in to comment.