docbrown/app/views/github_repos/index.json.jbuilder
rhymes 81fff248dd
Refactoring GitHub Repos functionality - step 1 (#7764)
* Rename find_or_create to upsert and improve validation and testing

* Add User.authenticated_through?

* Refactor settings/integrations

* Refactor profile github repositories rendering

* Refactor repos fetching

* Only fetch a single repo and improve error messages

* Remove unused code

* Cleanups

* Fix specs

* Remove trailing whitespace

* Fix spec

* Trigger Travis
2020-05-12 13:48:19 +02:00

5 lines
116 B
Ruby

json.array! @repos.each do |repo|
json.github_id_code repo.id
json.extract!(repo, :name, :fork, :featured)
end