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: acceptance.rb
    path of file: ./repos/stackneveroverflow/vendor/bundle/ruby/2.3.0/gems/activemodel-5.0.3/lib/active_model/validations
    
    the code of the file until where you have to start completion: module ActiveModel

  module Validations
    class AcceptanceValidator < EachValidator # :nodoc:
      def initialize(options)
        super({ allow_nil: true, accept: ["1", true] }.merge!(options))
        setup!(options[:class])
      end

      def validate_each(record, attribute, value)
        unless accept
    
        def initialize(attribute_definition)
          define_method(:respond_to_missing?) do |method_name, include_private=false|
            super(method_name, include_private) || attribute_definition.matches?(method_name)
          end

          define_method(:method_missing) do |method_name, *args, &block|
            if attribute_definition.matches?(method_name)
              attribute_definition.define_on(self.class)
              send(method_name, *args, &block)
            else
              super(method_name, *args, &block)
            end
          end