From fc3e77102f7f4849f6731df846cc8c7a2f12581e Mon Sep 17 00:00:00 2001 From: Torsten Date: Fri, 3 Feb 2023 17:27:42 +0200 Subject: [PATCH] scope --- app/models/member.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/member.rb b/app/models/member.rb index 36a5221..4dea922 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -1,5 +1,5 @@ class Member < ApplicationRecord - def self.default_scope + def self.public_scope where.not(confirmed_at: nil).where.not(picture: nil) end