From 906c1d744f4aaa28f56726c74d25ad4a00d89eec Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Mon, 10 Feb 2020 19:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/tiding.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/tiding.rb b/app/models/tiding.rb index 1b84f41bd..8b8cd37fc 100644 --- a/app/models/tiding.rb +++ b/app/models/tiding.rb @@ -7,7 +7,7 @@ class Tiding < ApplicationRecord has_many :attachments, as: :container - scope :visible, -> { where.not(delete: 0) } + scope :visible, -> { where(delete: 0) } def identifier value = nil