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

7 lines
256 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|
2021-06-02 15:29:00 +08:00
json.partial! "/users/watch_user_detail", target: watcher, user: watcher.watchable
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