1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "Explicitly included hashes in sentence regarding SQL-injection-safe forms"

Reason: The hash form is secure, and preferred over the array form if possible.

This reverts commit 6dc749596c.
This commit is contained in:
Xavier Noria 2011-08-04 15:14:06 -07:00
parent 19122e767c
commit b537595665

View file

@ -63,9 +63,9 @@ module ActiveRecord #:nodoc:
# == Conditions
#
# Conditions can either be specified as a string, array, or hash representing the WHERE-part of an SQL statement.
# The array form is to be used when the condition input is tainted and requires sanitization. The string and hash
# forms can be used for statements that don't involve tainted data. The hash form works much like the array form,
# except only equality and range is possible. Examples:
# The array form is to be used when the condition input is tainted and requires sanitization. The string form can
# be used for statements that don't involve tainted data. The hash form works much like the array form, except
# only equality and range is possible. Examples:
#
# class User < ActiveRecord::Base
# def self.authenticate_unsafely(user_name, password)