修改like方法

This commit is contained in:
sylor_huang@126.com
2020-04-22 11:54:32 +08:00
parent aced4885d7
commit 3f81d2ab5d
3 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
json.total_count @total_count
json.all_projects @projects.as_json
json.projects do
json.array! @projects.to_a do |project|
json.partial! 'project', project: project