|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
json.attendances @attendances do |attendance|
|
|
|
|
|
json.(attendance, :id, :name, :normal_count, :all_count, :mode)
|
|
|
|
|
json.(attendance, :id, :name, :normal_count, :all_count, :mode, :code)
|
|
|
|
|
json.author do
|
|
|
|
|
user = attendance.user
|
|
|
|
|
json.user_name user.real_name
|
|
|
|
|