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: controller.rb
    path of file: ./repos/cache-crispies/lib/cache_crispies
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module CacheCrispies
  # A Rails concern designed to be used in Rails controllers to provide access to
  # the #cache_render method
  module Controller
    extend ActiveSupport::Concern

    # The serialization
    
    def cache_render(
      serializer,
      cacheable,
      key: UNDEFINED, collection: nil, status: nil,
      meta: {}, meta_key: :meta,
      **options
    )
      plan = CacheCrispies::Plan.new(
        serializer,
        cacheable,
        key: key, collection: collection,
        **options
      )

      if CacheCrispies.config.etags?
        response.weak_etag = plan.etag
      end