You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
411 B
16 lines
411 B
6 years ago
|
json.partial! "commons/success"
|
||
|
json.data do
|
||
|
json.id @board.id
|
||
|
json.name @board.fix_name
|
||
|
json.parent_id @board.parent_id
|
||
|
json.total_count @messages.total_count
|
||
|
json.messages do
|
||
|
json.array! @messages do |message|
|
||
|
json.partial! "messages/message", message: message
|
||
|
json.author do
|
||
|
json.partial! "users/user_simple", user: message.author
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|