make changeSets Sets (duh) to avoid repetition
This commit is contained in:
parent
61a261470d
commit
c7cad11b89
@ -13,9 +13,9 @@ module Merged
|
||||
|
||||
def zero
|
||||
[Page, Section, Card].each { |m| m.reload(true) }
|
||||
@adds = []
|
||||
@edits = []
|
||||
@deletes = []
|
||||
@adds = Set.new
|
||||
@edits = Set.new
|
||||
@deletes = Set.new
|
||||
end
|
||||
|
||||
def add( type , text)
|
||||
|
@ -27,6 +27,7 @@
|
||||
%td.px-4.py-2.text-gray-700
|
||||
- changeset(type , element).each do |name|
|
||||
=name.last
|
||||
%br
|
||||
|
||||
.grid.grid-cols-3.bg-white
|
||||
.items-center.justify-center.col-span-2
|
||||
|
Loading…
Reference in New Issue
Block a user