rosa-build/app/views/api/v1/users/show.json.jbuilder

9 lines
434 B
Plaintext
Raw Normal View History

json.user do
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
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)
json.(@user, :role) if action_name == 'show_current_user'
end