Flowdock
method

sanitize_sql_hash

Importance_1
v1.2.0 - Show latest stable - 0 notes - Class: ActiveRecord::Base
sanitize_sql_hash(attrs) protected

Sanitizes a hash of attribute/value pairs into SQL conditions.

  { :name => "foo'bar", :group_id => 4 }
    # => "name='foo''bar' and group_id= 4"
  { :status => nil, :group_id => [1,2,3] }
    # => "status IS NULL and group_id IN (1,2,3)"
Show source
Register or log in to add new notes.