From 4a6d84487a339140e60028aa03c26196c5d1ac81 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 6 Apr 2019 17:49:09 +0800 Subject: [PATCH] message 500 --- app/models/message.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/message.rb b/app/models/message.rb index 63a7ce5f..438b2d5c 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -119,7 +119,7 @@ class Message < ActiveRecord::Base end def content - self.message_detail.try(:content) + self.try(:content) end def topic?