修改参数名称错误
This commit is contained in:
parent
2f98684324
commit
f0da03ef94
|
@ -1,6 +1,6 @@
|
||||||
user = project.owner
|
user = project.owner
|
||||||
if user.present?
|
if user.present?
|
||||||
json.partial! 'project', project: project
|
json.partial! '/projects/project', project: project
|
||||||
json.author do
|
json.author do
|
||||||
json.name user.try(:show_real_name)
|
json.name user.try(:show_real_name)
|
||||||
json.login user.login
|
json.login user.login
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
json.project_ids @projects.pluck(:id)
|
json.project_ids @projects.pluck(:id)
|
||||||
json.total_count @total_count
|
json.total_count @total_count
|
||||||
json.projects do
|
json.projects do
|
||||||
json.partial! "/projects/project_item", collection: @projects, as: :porject
|
json.partial! "/projects/project_item", collection: @projects, as: :project
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue