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

class S
    
  def index
    @adjustments = @order
      .all_adjustments
      .eligible
      .order("adjustable_type ASC, created_at ASC")
      .ransack(params[:q])
      .result

    set_page_and_extract_portion_from(@adjustments)

    respond_to do |format|
      format.html do
        render component('orders/show/adjustments/index').new(
          order: @order,
          adjustments: @adjustments,
        )
      end
    end
  end