Module: ActiveRecord::Sanitization::ClassMethods
- Defined in:
- activerecord/lib/active_record/sanitization.rb
Instance Method Summary collapse
-
#quote_value(value, column = nil) ⇒ Object
:nodoc:.
-
#sanitize(object) ⇒ Object
Used to sanitize objects before they’re used in an SQL SELECT statement.
Instance Method Details
#quote_value(value, column = nil) ⇒ Object
:nodoc:
8 9 10 |
# File 'activerecord/lib/active_record/sanitization.rb', line 8 def quote_value(value, column = nil) #:nodoc: connection.quote(value,column) end |
#sanitize(object) ⇒ Object
Used to sanitize objects before they’re used in an SQL SELECT statement. Delegates to connection.quote
.
13 14 15 |
# File 'activerecord/lib/active_record/sanitization.rb', line 13 def sanitize(object) #:nodoc: connection.quote(object) end |