Module: ActiveRecord::Sanitization::ClassMethods

Defined in:
activerecord/lib/active_record/sanitization.rb

Instance Method Summary collapse

Instance Method Details

#sanitize(object) ⇒ Object Also known as: quote_value

Used to sanitize objects before they're used in an SQL SELECT statement. Delegates to connection.quote.


8
9
10
# File 'activerecord/lib/active_record/sanitization.rb', line 8

def sanitize(object) # :nodoc:
  connection.quote(object)
end