From fbf226979661d376d579d3676b5b6268bbbd01f2 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 27 Dec 2019 20:08:20 +0800 Subject: [PATCH] 1 --- app/views/hack_user_lastest_codes/show.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/hack_user_lastest_codes/show.json.jbuilder b/app/views/hack_user_lastest_codes/show.json.jbuilder index a158d074f..f866b3151 100644 --- a/app/views/hack_user_lastest_codes/show.json.jbuilder +++ b/app/views/hack_user_lastest_codes/show.json.jbuilder @@ -2,6 +2,7 @@ json.hack do json.(@hack, :id, :name, :difficult, :time_limit, :description, :score, :identifier, :status, :praises_count) json.language @hack.language json.username @hack.user.real_name + json.user_path "/users/#{@hack.user.login}" json.code @my_hack.code json.pass_count @hack.pass_num json.submit_count @hack.submit_num @@ -19,5 +20,4 @@ json.user do json.partial! 'users/user', user: current_user json.hack_manager @hack.manager?(current_user) json.admin current_user.admin_or_business? - end \ No newline at end of file