[file-store-12] add role to current user

This commit is contained in:
Alexander Machehin 2013-01-16 15:54:17 +06:00
parent 3dd553b2dd
commit 525a30c471
1 changed files with 1 additions and 0 deletions

View File

@ -5,4 +5,5 @@ json.user do |json|
json.avatar_url avatar_url(@user,:big)
json.url api_v1_user_path(@user.id, :format => :json)
json.html_url user_path(@user.uname)
json.(@user, :role) if action_name == 'show_current_user'
end