From fe4aefa3b65cbeced0e5dab4a93c58cc91c4f124 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 18 Mar 2020 15:37:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/journal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/journal.rb b/app/models/journal.rb index b943bd4..185cc79 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -19,7 +19,7 @@ class Journal < ApplicationRecord details = self.journal_details.select(:property, :prop_key, :old_value, :value).pluck(:property, :prop_key, :old_value, :value) if details.size > 0 details.each do |de| - unless de[1] == "description" + unless de[1].to_s == "description" if de[0] == "attr" content = "" else