    # File lib/active_record/validations.rb, line 512
          def validates_presence_of(*attr_names)
            configuration = { :message => ActiveRecord::Errors.default_error_messages[:blank], :on => :save }
            configuration.update(attr_names.extract_options!)

            # can't use validates_each here, because it cannot cope with nonexistent attributes,
            # while errors.add_on_empty can
            send(validation_method(configuration[:on])) do |record|
              unless (configuration[:if] && !evaluate_condition(configuration[:if], record)) || (configuration[:unless] && evaluate_condition(configuration[:unless], record))
                record.errors.add_on_blank(attr_names, configuration[:message])
              end
            end
          end