Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
dikond authored Aug 3, 2018
1 parent 006ef4a commit a4af9ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Api::UsersController < ApplicationController

permissions = Grabli.new.collect(current_user, @user)

render json: { user: @user.to_json, permissions: permissions }
render json: { user: @user.to_hash, permissions: permissions }
end
end
```
Expand All @@ -54,7 +54,7 @@ class Api::UsersController < ApplicationController
@user = User.find(params[:id])
authorize @user

render json: { user: @user.to_json, permissions: collect_permissions_for(@user) }
render json: { user: @user.to_hash, permissions: collect_permissions_for(@user) }
end
end
```
Expand Down

0 comments on commit a4af9ef

Please sign in to comment.