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: current_pod.rb
    path of file: ./repos/mashcard/apps/server-monolith/app/controllers/concerns
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module CurrentPod
  extend ActiveSupport::Concern

  def current_pod
    fetch_pod_by_user || ::Pod::ANONYMOUS_CONTEXT
  end

  private

  def fetch_pod_by_user
    return nil if current_user.nil?

    ### NOTE via session
    # po
    
  def fetch_pod_by_user
    return nil if current_user.nil?

    ### NOTE via session
    # pod = warden.session['current_pod']
    # return pod if pod
    # pod = current_user.fetch_current_pod_cache.as_session_context
    # warden.session['current_pod'] = pod

    ## TODO graphql
    remote_pod =
      if request.params['controller'] == 'pages'
        warden.session['current_pod'] = fetch_pod_via_params
      else
        warden.session['current_pod']
      end