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

Remove deprecated quote methods, replaced by quote_value so quote can be used as an attribute name.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7000 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2007-06-11 08:06:07 +00:00
parent 7858a32e1b
commit b94f8e1d29

View file

@ -911,11 +911,6 @@ module ActiveRecord #:nodoc:
connection.quote(value,column)
end
def quote(value, column = nil) #:nodoc:
connection.quote(value, column)
end
deprecate :quote => :quote_value
# Used to sanitize objects before they're used in an SELECT SQL-statement. Delegates to <tt>connection.quote</tt>.
def sanitize(object) #:nodoc:
connection.quote(object)
@ -2207,13 +2202,6 @@ module ActiveRecord #:nodoc:
self.class.connection.quote(value, column)
end
# Deprecated, use quote_value
def quote(value, column = nil)
self.class.connection.quote(value, column)
end
deprecate :quote => :quote_value
# Interpolate custom sql string in instance context.
# Optional record argument is meant for custom insert_sql.
def interpolate_sql(sql, record = nil)