rename
This commit is contained in:
parent
2504ecf4c4
commit
d90ed00b71
@ -3,7 +3,7 @@ class MembersController < ApplicationController
|
|||||||
|
|
||||||
# GET /members
|
# GET /members
|
||||||
def index
|
def index
|
||||||
@members = Member.visible_scope.order(:name).page params[:page]
|
@members = Member.public_scope.order(:name).page params[:page]
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /members/1
|
# GET /members/1
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
class Member < ApplicationRecord
|
class Member < ApplicationRecord
|
||||||
|
|
||||||
def self.visible_scope
|
def self.public_scope
|
||||||
where.not(confirmed_at: nil).where.not(picture: nil)
|
where.not(confirmed_at: nil).where.not(picture: nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user