Update users_controller.rb
This commit is contained in:
parent
71a0a090ba
commit
e97afb72bc
1 changed files with 5 additions and 1 deletions
|
|
@ -50,7 +50,11 @@ class Api::V1::UsersController < Api::V1::ApiController
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@parties = @user.parties
|
if @user
|
||||||
|
@parties = @user.parties
|
||||||
|
else
|
||||||
|
render_not_found_response
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue