forgeplus/app/views/users/fan_users.json.jbuilder

7 lines
261 B
Plaintext
Raw Normal View History

2020-06-03 18:23:53 +08:00
json.count @watchers_count
json.users do
2020-06-05 18:36:33 +08:00
json.array! @watchers do |watcher|
2020-06-05 18:37:50 +08:00
json.partial! "/users/watch_user_detail", locals: {target: watcher, user: watcher.user}
2020-06-05 18:36:33 +08:00
end
# json.partial! "/users/watch_user_detail", collection: @watchers, as: :target
2020-06-03 18:23:53 +08:00
end