    # File lib/active_record/validations.rb, line 432
          def validates_confirmation_of(*attr_names)
            configuration = { :on => :save }
            configuration.update(attr_names.extract_options!)

            attr_accessor(*(attr_names.map { |n| "#{n}_confirmation" }))

            validates_each(attr_names, configuration) do |record, attr_name, value|
              unless record.send("#{attr_name}_confirmation").nil? or value == record.send("#{attr_name}_confirmation")
                record.errors.add(attr_name, :confirmation, :default => configuration[:message])
              end
            end
          end