详情中的名称

dev_forge
daiao 5 years ago
parent 9e51bc7641
commit 83ea97ffa4

@ -1,3 +1,4 @@
json.(@hack_user, :id, :status, :error_line, :error_msg, :expected_output,
:input, :output, :execute_time, :execute_memory)
json.language @hack_user.hack.language
json.language @hack_user.hack.language
json.name @hack_user.hack.name

@ -1,5 +1,5 @@
json.hack do
json.(@hack, :difficult, :time_limit, :description, :score, :identifier)
json.(@hack, :name, :difficult, :time_limit, :description, :score, :identifier)
json.language @hack.language
json.username @hack.user.real_name
json.code @my_hack.code

Loading…
Cancel
Save