修改bug

This commit is contained in:
sylor_huang@126.com 2020-05-15 17:47:48 +08:00
parent 84ed5bb06c
commit dbc0d3eabb
1 changed files with 2 additions and 2 deletions

View File

@ -2,9 +2,9 @@ json.count @fork_users.size
json.fork_users do
json.array! @fork_users.each do |f|
user = f.user
fork_project = Project.select(:id,:fork_project_id,:name).find_by(id: f.fork_project_id)
fork_project = Project.select(:id,:name).find_by(id: f.fork_project_id)
json.id f.fork_project_id
json.name "#{user.try(:show_real_name)}/#{fork_project.name}"
json.name "#{user.try(:show_real_name)}/#{fork_project.try(:name)}"
json.login user.try(:login)
json.image_url url_to_avatar(user)
json.format_time f.created_at.strftime("%Y-%m-%d")