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: application_controller.rb
    path of file: ./repos/vets-api/modules/facilities_api/app/controllers/facilities_api
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module FacilitiesApi
  class ApplicationController < ::ApplicationController
    service_tag 'facility-locator'
    skip_before_action :authenticate

    PAGINATED_CLASSES = [
      WillPaginate::Collection,
      ActiveRecord::Relation
    ].freeze

    private

    def render_json(serializer, page_params, obj, options = {})
      if PAGINATED_CLASSES.any? { |array_class| obj.is_a?(array_class) }
        render_collection(serializer, page_params, obj, options)
      else
        render_record(serializer, obj, options)
      end
    end

    def ren
    
    def generate_links(paginated_obj, page_params)
      links = {
        self: resource_path(
          page_params.merge(page: paginated_obj.current_page, per_page: paginated_obj.per_page)
        ),
        first: resource_path(
          page_params.merge(per_page: paginated_obj.per_page)
        ),
        prev: generate_previous_page_link(paginated_obj, page_params),
        next: generate_next_page_link(paginated_obj, page_params),
        last: resource_path(
          page_params.merge(page: paginated_obj.total_pages, per_page: paginated_obj.per_page)
        )
      }

      # Slicing the hash to fix the order
      links.slice(:self, :first, :prev, :next, :last)
    end