Skip to content
Snippets Groups Projects
Commit 799c9c24 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

better

parent 4efabdc6
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,7 @@ module Communication::Website::Menu::WithAutomatism
def create_items
home = website.pages.where(language_id: language_id).root.first
return unless home
create_items_for_children_of(home)
create_items_for_children_of(home) if home
end
def create_items_for_children_of(page, parent_item = nil)
......
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