make changeSets Sets (duh) to avoid repetition

This commit is contained in:
Torsten 2023-01-05 17:47:20 +02:00
parent 61a261470d
commit c7cad11b89
2 changed files with 4 additions and 3 deletions

View File

@ -13,9 +13,9 @@ module Merged
def zero def zero
[Page, Section, Card].each { |m| m.reload(true) } [Page, Section, Card].each { |m| m.reload(true) }
@adds = [] @adds = Set.new
@edits = [] @edits = Set.new
@deletes = [] @deletes = Set.new
end end
def add( type , text) def add( type , text)

View File

@ -27,6 +27,7 @@
%td.px-4.py-2.text-gray-700 %td.px-4.py-2.text-gray-700
- changeset(type , element).each do |name| - changeset(type , element).each do |name|
=name.last =name.last
%br
.grid.grid-cols-3.bg-white .grid.grid-cols-3.bg-white
.items-center.justify-center.col-span-2 .items-center.justify-center.col-span-2