FIX code review

This commit is contained in:
Jasder 2020-11-23 15:52:00 +08:00
parent 60ac66ebe3
commit 69f2fd2fbb
1 changed files with 1 additions and 3 deletions

View File

@ -1,6 +1,4 @@
json.count @total_count
json.projects do
json.array! @projects do |project|
json.partial! "/projects/project_detail", project: project
end
json.partial! '/projects/project_detail', collection: @projects, as: :project
end