forked from fixin.me/fixin.me
* check for <object> instead of <object>.nil? * check for <association>_id? instead of <association>.nil? (avoids record loading)
10 lines
327 B
Plaintext
10 lines
327 B
Plaintext
<% @self_and_progenies.each do |q| %>
|
|
<%= turbo_stream.remove q %>
|
|
<% end %>
|
|
<% @previous_ancestors.union(@ancestors).map do |ancestor| %>
|
|
<%= turbo_stream.replace ancestor %>
|
|
<% end %>
|
|
<% @self_and_progenies.each do |q| %>
|
|
<%= @before ? turbo_stream.before(@before, q) : turbo_stream.append(:quantities, q) %>
|
|
<% end %>
|