2013-07-17 13:35:36 +01:00
|
|
|
json.user do
|
2012-10-15 15:06:08 +01:00
|
|
|
json.(@user, :id, :name, :email, :uname,:language, :own_projects_count, :professional_experience, :site, :company, :location, :build_priority)
|
2012-10-15 10:45:00 +01:00
|
|
|
json.created_at @user.created_at.to_i
|
|
|
|
json.updated_at @user.updated_at.to_i
|
2012-10-15 15:06:08 +01:00
|
|
|
json.avatar_url avatar_url(@user,:big)
|
2014-01-21 04:51:49 +00:00
|
|
|
json.url api_v1_user_path(@user.id, format: :json)
|
2012-10-15 10:45:00 +01:00
|
|
|
json.html_url user_path(@user.uname)
|
2013-01-16 09:54:17 +00:00
|
|
|
json.(@user, :role) if action_name == 'show_current_user'
|
2012-10-15 15:06:08 +01:00
|
|
|
end
|