# 关于新的审核队列(2019)的反馈

**URL:** https://meta.discourse.org/t/feedback-on-the-new-review-queue-2019/112837
**Category:** Announcements
**Tags:** new-feature, review-queue
**Created:** [2019年三月28日 16:50 UTC](https://meta.discourse.org/t/feedback-on-the-new-review-queue-2019/112837 "2019-03-28T16:50:12Z")
**Posts on this page:** 1
**Showing post:** 188

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [2020年六月1日 20:13 UTC](https://meta.discourse.org/t/feedback-on-the-new-review-queue-2019/112837/188 "2020-06-01T20:13:24Z")

</div>

我认为可以通过类似下面的方式来确定需要过滤掉的可审查类型：

```ruby
class Reviewable < ActiveRecord::Base
  def self.exclude_types
     db_types = Reviewable.distinct.pluck(:type)

     @exclude_types ||= db_types - Reviewable.types
  end
  
...
end

```

然后我们可以利用这些类型来应用默认作用域。我们可能还需要为表添加一个 `type` 索引。

---

_[View the full topic](https://meta.discourse.org/t/feedback-on-the-new-review-queue-2019/112837)._
