Browse Source

修改参数名称错误

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
f0da03ef94
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/views/projects/_project_item.json.jbuilder
  2. +1
    -1
      app/views/projects/index.json.jbuilder

+ 1
- 1
app/views/projects/_project_item.json.jbuilder View File

@@ -1,6 +1,6 @@
user = project.owner
if user.present?
json.partial! 'project', project: project
json.partial! '/projects/project', project: project
json.author do
json.name user.try(:show_real_name)
json.login user.login


+ 1
- 1
app/views/projects/index.json.jbuilder View File

@@ -1,5 +1,5 @@
json.project_ids @projects.pluck(:id)
json.total_count @total_count
json.projects do
json.partial! "/projects/project_item", collection: @projects, as: :porject
json.partial! "/projects/project_item", collection: @projects, as: :project
end

Loading…
Cancel
Save