Module: ScopedSearch::Adapter::PostgreSQLAdapter

Defined in:
lib/scoped_search/adapters.rb

Class Method Summary collapse

Class Method Details

.setup(connection) ⇒ Object



35
36
37
38
# File 'lib/scoped_search/adapters.rb', line 35

def self.setup(connection)
  ScopedSearch::QueryBuilder::SQL_OPERATORS[:like] = 'ILIKE'
  ScopedSearch::QueryBuilder::SQL_OPERATORS[:unlike] = 'NOT ILIKE'
end