class PgSearch::ScopeOptions
def include_table_aliasing_for_rank(scope)
def include_table_aliasing_for_rank(scope) return scope if scope.included_modules.include?(PgSearchRankTableAliasing) scope.all.spawn.tap do |new_scope| new_scope.instance_eval { extend PgSearchRankTableAliasing } end end