Skip to content

Commit 4a4b28d

Browse files
committed
Stick the user json to /groups/own
1 parent f615b9f commit 4a4b28d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/controllers/groups_controller.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ def own
1313
authenticate_user!
1414
@groups = current_user.groups
1515
respond_to do |format|
16-
format.json { render json: { groups: @groups.map(&:collection_json) } }
16+
format.json do
17+
render json: {
18+
groups: @groups.map(&:collection_json),
19+
user: current_user.manifest_json,
20+
}
21+
end
1722
format.html { render :index }
1823
end
1924
end

0 commit comments

Comments
 (0)