pg_search
https://github.com/casecommons/pg_search
Ruby
pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
GitlabUploader#relative_path
Designed to be overridden by child uploaders that have a dynamic path segment -- that is, a path that changes based on mutable attributes of its associated model For example, `FileUploader` builds the storage path based on the associated project model's `path_with_namespace` value, which can change when the project or its containing namespace is moved or renamed.
Edit
git clone [email protected]:casecommons/pg_search.git
cd pg_search
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-GitlabUploader-relative_path-for-pr
# Commit to gitgit add git commit -m "better docs for GitlabUploader#relative_path"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-GitlabUploader-relative_path-for-pr
hub pull-request
# Celebrate!