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

module StoreModel
  # Contains methods for working with nested StoreModel::Model attr
    
      def define_attr_accessor_for_destroy(association, options)
        return unless options&.dig(:allow_destroy)

        nested_attribute_type(association).model_klass.class_eval do
          attr_accessor :_destroy
        end
      end