Skip to content

Commit

Permalink
Exclude some fields in github users repos api response
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jun 13, 2016
1 parent 88866f9 commit e1660b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/github_users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def show
def repositories
@repositories = @github_user.github_repositories.open_source.source.order('stargazers_count DESC')

paginate json: @repositories
paginate json: @repositories.as_json({ except: [:id, :github_organisation_id, :owner_id] })
end

def projects
Expand Down

0 comments on commit e1660b8

Please sign in to comment.