A platform for community discussion. Free, open, simple.
DEV: Remove this chained user scope (#17029)
Blake Erickson3941bad0751f
diff --git a/app/models/user.rb b/app/models/user.rbindex 92ae57dd0a9..2bef343009d 100644--- a/app/models/user.rb+++ b/app/models/user.rb@@ -221,7 +221,6 @@ class User < ActiveRecord::Basescope :not_suspended, -> { where('suspended_till IS NULL OR suspended_till <= ?', Time.zone.now) }scope :activated, -> { where(active: true) }scope :not_staged, -> { where(staged: false) }- scope :activated_not_suspended_not_staged, -> { self.activated.not_suspended.not_staged }scope :filter_by_username, ->(filter) doif filter.is_a?(Array)