forked from fixin.me/fixin.me
5 lines
282 B
Plaintext
5 lines
282 B
Plaintext
<%= turbo_stream.remove @unit %>
|
|
<%= turbo_stream.replace @previous_base if @previous_base %>
|
|
<%= turbo_stream.replace @unit.base if @unit.base_id? && (@previous_base&.id != @unit.base_id) %>
|
|
<%= @before ? turbo_stream.before(@before, @unit) : turbo_stream.append(:units, @unit) %>
|