fix card and section delete
This commit is contained in:
@ -31,7 +31,7 @@ module Merged
|
||||
end
|
||||
|
||||
def destroy
|
||||
@card.delete_save!
|
||||
@card.delete_and_reset_index
|
||||
redirect_to section_cards_url(@card.section.id) , notice: "#{@card.header} removed"
|
||||
end
|
||||
|
||||
|
@ -27,7 +27,7 @@ module Merged
|
||||
end
|
||||
|
||||
def destroy
|
||||
@section.delete_save!
|
||||
@section.delete_and_reset_index
|
||||
redirect_to page_sections_url(@section.page.id) , notice: "Section #{@section.header} removed"
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user