Skip to content

Instantly share code, notes, and snippets.

@talum
Created November 25, 2018 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talum/09624fdbfdb3705c5f1f1a863cf461a2 to your computer and use it in GitHub Desktop.
Save talum/09624fdbfdb3705c5f1f1a863cf461a2 to your computer and use it in GitHub Desktop.
class Api::V1::SearchesController < ApiController
def new
gh_id_mappings = if $rollout.active?(:remove_content)
GithubRepository.track_data_for_github_repos(repos.pluck(:id), current_user.active_track_id)
else
GithubRepository.github_id_mappings_for_global_search(current_user)
end
# omitted
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment