counting private profiles

This commit is contained in:
Torsten
2023-11-28 10:54:06 +02:00
parent 35e73d1fc2
commit 0c645f61e9
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,8 @@ class MembersController < ApplicationController
where("leaving > ?" , Date.today).
order(:leaving).
page params[:page]
@private = Member.where("arriving < ? " , Date.today).
where("leaving > ?" , Date.today).count - @members.length
end
def timeline