validates_acceptance_of (ActiveRecord::Validations::ClassMethods)

    # File lib/active_record/validations.rb, line 537
          def validates_acceptance_of(*attr_names)
            configuration = { :on => :save, :allow_nil => true, :accept => "1" }
            configuration.update(attr_names.extract_options!)

            db_cols = begin
              column_names
            rescue Exception # To ignore both statement and connection errors
              []
            end
            names = attr_names.reject { |name| db_cols.include?(name.to_s) }
            attr_accessor(*names)

            validates_each(attr_names,configuration) do |record, attr_name, value|
              unless value == configuration[:accept]
                record.errors.add(attr_name, :accepted, :default => configuration[:message])
              end
            end
          end