Module: ActiveRecord::Sanitization::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#quote_value(value, column) ⇒ Object

:nodoc:



6
7
8
# File 'activerecord/lib/active_record/sanitization.rb', line 6

def quote_value(value, column) #: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.



11
12
13
# File 'activerecord/lib/active_record/sanitization.rb', line 11

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