Module: ActiveRecord::Sanitization::ClassMethods
- Defined in:
- lib/active_record/sanitization.rb
Instance Method Summary collapse
-
#sanitize(object) ⇒ Object
(also: #quote_value)
Used to sanitize objects before they’re used in an SQL SELECT statement.
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 'lib/active_record/sanitization.rb', line 8 def sanitize(object) # :nodoc: connection.quote(object) end |