You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pool_helper.rb
    path of file: ./repos/moebooru/app/helpers
    
    the code of the file until where you have to start completion: module PoolHelper
  def pool_list(post)
    html = ""
    pools = Pool
      .joins("JOIN pools_posts ON pools_posts.pool_id = pools.id")
      .where(pools_posts: { post_id: post.id })
      .order(:name).select(:name, :id)

  
    
  def pool_list(post)
    html = ""
    pools = Pool
      .joins("JOIN pools_posts ON pools_posts.pool_id = pools.id")
      .where(pools_posts: { post_id: post.id })
      .order(:name).select(:name, :id)

    if pools.empty?
      html << "none"
    else
      html << pools.map { |p| link_to(h(p.pretty_name), controller: "pool", action: "show", id: p.id) }.join(", ")
    end