track last edit

This commit is contained in:
2023-01-06 18:50:06 +02:00
parent 178c0ba9d2
commit b9c6b12131
15 changed files with 87 additions and 52 deletions

View File

@ -31,7 +31,7 @@ module Merged
end
def destroy
@card.delete_and_reset_index
@card.delete_and_reset_index(current_member.email)
redirect_to section_cards_url(@card.section.id) , notice: "#{@card.header} removed"
end

View File

@ -53,7 +53,7 @@ module Merged
end
def destroy
@page.delete_save!
@page.delete_save!(current_member.email)
redirect_to pages_url, notice: "Page #{@page.name} was removed."
end

View File

@ -27,7 +27,7 @@ module Merged
end
def destroy
@section.delete_and_reset_index
@section.delete_and_reset_index(current_member.email)
redirect_to page_sections_url(@section.page.id) , notice: "Section #{@section.header} removed"
end