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: sites_controller.rb
    path of file: ./repos/comfortable-mexican-sofa/app/controllers/comfy/admin/cms
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Comfy::Admin::Cms::SitesController < Comfy::Admin::Cms::BaseController

  skip_before_action  :load_admin
    
  def load_site
    @site = ::Comfy::Cms::Site.find(params[:id])
    I18n.locale = ComfortableMexicanSofa.config.admin_locale || @site.locale
  rescue ActiveRecord::RecordNotFound
    flash[:danger] = I18n.t("comfy.admin.cms.sites.not_found")
    redirect_to action: :index
  end