module PgSearch::ScopeOptions::WithPgSearchRank
def with_pg_search_rank
def with_pg_search_rank scope = self scope = scope.select("*") unless scope.select_values.any? scope.select("pg_search.rank AS pg_search_rank") end
def with_pg_search_rank scope = self scope = scope.select("*") unless scope.select_values.any? scope.select("pg_search.rank AS pg_search_rank") end