pg_search

https://github.com/casecommons/pg_search

Ruby

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search

Gitlab::ImportExport::JsonHashBuilder#process_model_objects

Called when the model is actually a hash containing other relations (more models)
Returns the config in the right format for calling +to_json+

+model_object_hash+ - A model relationship such as:
  {:merge_requests=>[:merge_request_diff, :notes]}

Source | Google | Stack overflow

Edit

git clone [email protected]:casecommons/pg_search.git

cd pg_search

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Gitlab--ImportExport--JsonHashBuilder-process_model_objects-for-pr


# Commit to git

git add git commit -m "better docs for Gitlab::ImportExport::JsonHashBuilder#process_model_objects"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Gitlab--ImportExport--JsonHashBuilder-process_model_objects-for-pr

hub pull-request


# Celebrate!