Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v5.0.0.1) is shown here.
sanitize(object)
public
Used to sanitize
objects before they’re used in an SQL SELECT statement. Delegates to
{connection.quote}[rdoc-ref:ConnectionAdapters::Quoting#quote].
# File activerecord/lib/active_record/sanitization.rb, line 8
def sanitize(object) # :nodoc:
connection.quote(object)
end