change bug

This commit is contained in:
sylor_huang@126.com 2020-06-05 18:37:50 +08:00
parent fbf2738bd1
commit 6fc93489ab
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
json.count @watchers_count
json.users do
json.array! @watchers do |watcher|
json.partial! "/users/watch_user_detail", locals: {target: watcher, user: target.user}
json.partial! "/users/watch_user_detail", locals: {target: watcher, user: watcher.user}
end
# json.partial! "/users/watch_user_detail", collection: @watchers, as: :target
end