Skip to content
Snippets Groups Projects
Unverified Commit 6b18d451 authored by Pierre-André Boissinot's avatar Pierre-André Boissinot Committed by GitHub
Browse files

add transaction to prevent intermediary crash if parent menu_item has been...

add transaction to prevent intermediary crash if parent menu_item has been destroyed by another simulatnous generation (#1769)
parent 6efa0368
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,10 @@ module Communication::Website::Menu::WithAutomatism
def generate_automatically
begin
pause_git_sync
clear_items
create_items
transaction do
clear_items
create_items
end
ensure
unpause_git_sync
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment