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: qualification.rb
    path of file: ./repos/hitobito/app/domain/person/filter
    
    the code of the file until where you have to start completion: # encoding: utf-8

#  Copyright (c) 2017, Jungwacht Blauring Schweiz. This file is pa
    
  def qualification_date_year_scope(attr)
    from = args[:"#{attr}_year_from"].to_i
    untils = args["#{attr}_year_until"].to_i

    scope = ::Qualification.all
    scope = scope.where(Qualification.arel_table[attr].gteq(Date.new(from, 1, 1))) if from > 0
    scope = scope.where(Qualification.arel_table[attr].lteq(Date.new(untils, 12, 31))) if untils > 0
    scope
  end