From 5686d81ca9d640345a0fa3ce4634e8225d51145f Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 5 Sep 2019 21:37:42 +0800 Subject: [PATCH] tiaoz --- app/models/message.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/message.rb b/app/models/message.rb index 9e516acb..91fdefac 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -119,6 +119,10 @@ class Message < ActiveRecord::Base message_detail.try(:content) end + def content + message_detail.try(:content) + end + # def content # self.try(:content) # end