Module: ActiveRecord::Sanitization::ClassMethods

Defined in:
lib/active_record/sanitization.rb

Instance Method Summary collapse

Instance Method Details

#quote_value(value, column = nil) ⇒ Object

:nodoc:



8
9
10
# File '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 'lib/active_record/sanitization.rb', line 13

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