From 37f1a7fae6d6ab53df3866162049975a7043215e Mon Sep 17 00:00:00 2001 From: p31729568 Date: Fri, 2 Aug 2019 08:33:20 +0800 Subject: [PATCH] add send day to create private message apig --- app/views/users/private_messages/create.json.jbuilder | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/users/private_messages/create.json.jbuilder b/app/views/users/private_messages/create.json.jbuilder index 888cfeff6..2d5b4e7bf 100644 --- a/app/views/users/private_messages/create.json.jbuilder +++ b/app/views/users/private_messages/create.json.jbuilder @@ -3,6 +3,7 @@ json.message 'success' json.private_message do json.extract! @message, :id, :user_id, :receiver_id, :sender_id, :content + json.send_day @message.send_time.strftime('%Y-%m-%d') json.send_time @message.display_send_time json.sender do json.partial! 'users/user_simple', user: @message.sender