Casecommons/pg_search — Issue #14: Eager Loading
Author: tommeier
Created: 2011-10-12 19:22:23+00:00
State: open

Hi,

Eager loading associations seems to cause an error:

`SomeSearch.pgsearch_scope('SomethingWith.com')`

This works. However, once you add eager loading, will cause it to fail :

`SomeSearch.pgsearch_scope('SomethingWith.com').includes(:some_association)`

ActiveRecord::StatementInvalid: PGError: ERROR: column "pg_search_rank" does not exist
LINE 1: ...SomethingWith.com' || ' ''' || ':*')))) ORDER BY pg_search_...

Has anyone else faced this issue?