diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-13 13:50:00 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-13 17:25:24 +0300 |
commit | 54231aa4e036179d035ddd3641bc15a5b31883f2 (patch) | |
tree | 29633c8be132cbf12ef163575770c0646316438f /lib/api/projects.rb | |
parent | 3ab9ea8dae1edc6ab8c8563843342890736eb24c (diff) |
Styling changes to code and docs
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index c7fdfbfe57b..cc2c7a0c503 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -284,6 +284,7 @@ module API else current_user.toggle_star(user_project) user_project.reload + present user_project, with: Entities::Project end end @@ -293,11 +294,12 @@ module API # Parameters: # id (required) - The ID of a project # Example Request: - # DELETE /projects/:id/unstar + # DELETE /projects/:id/star delete ':id/star' do if current_user.starred?(user_project) current_user.toggle_star(user_project) user_project.reload + present user_project, with: Entities::Project else not_modified! |