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: checklists_controller.rb
    path of file: ./repos/mushroom-observer/app/controllers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class ChecklistsController < ApplicationController
  # filters
  before_action :login_required
  before_action :pass_query_params

  # Old MO Action (method)        New "Normalized" Action (method)
  # ----------------------------  --------------------------------

    
  def show
    store_location
    user_id = params[:user_id] || params[:id]
    proj_id = params[:project_id]
    list_id = params[:species_list_id]

    @data = if user_id.present?
              user_checklist(user_id)
            elsif proj_id.present?
              project_checklist(proj_id)
            elsif list_id.present?
              species_list_checklist(list_id)
            else
              Checklist::ForSite.new
            end