def build(&block)
      raise 'build must be called with a block' if !block_given?

      root = menu_items.build(title: 'Home', url: '/', lft: 1, rgt: 2)
      root.parent = true
      instance_exec(&block) # A call to dropdown or item
      root.rgt = menu_items.map(&:rgt).max
      self
    end
def build(&block)
      raise 'build must be called with a block' if !block_given?

      root = menu_items.build(title: 'Home', url: '/', lft: 1, rgt: 2)
      root.parent = true
      instance_exec(&block) # A call to dropdown or item
      root.rgt = menu_items.map(&:rgt).max
      self
    end
This is the entry point to the DSL method for creating menu items