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: holds_controller.rb
    path of file: ./repos/circulate/app/controllers/admin/items
    
    the code of the file until where you have to start completion: module Admin
  module Items
    class HoldsController < BaseController
      def index
        @item = Item.find(params[:item_id])
        holds_scop
    
      def index
        @item = Item.find(params[:item_id])
        holds_scope = @item.holds.ordered_by_position.includes(:member)
        @holds =
          if params[:inactive]
            holds_scope.inactive
          else
            holds_scope.active
          end