fix updated_by

This commit is contained in:
2023-01-25 01:16:05 +02:00
parent 3660f9e8e2
commit bafe142a3b
10 changed files with 121 additions and 18 deletions

View File

@ -19,7 +19,7 @@ module Merged
else
@card.move_down
end
@card.edit_save(current_member)
@card.edit_save(current_member.email)
redirect_to section_cards_url(@card.section.id),notice: "#{@card.header} moved"
end

View File

@ -67,14 +67,10 @@ module Merged
def get_images
images = Image.all
puts "Images #{images.length}"
return images unless params[:unused]
hash = images.collect{|i| [i.id , i ] }.to_h
puts "Images1 #{hash.length}"
Section.all.each{ |s| hash.delete(s.image&.id)}
puts "Images2 #{hash.length}"
Card.all.each{ |s| hash.delete(s.image&.id)}
puts "Images3 #{hash.length}"
hash.values
end
def set_image