2023-06-03 17:09:23 +02:00
|
|
|
class TimelineController < ApplicationController
|
|
|
|
|
|
|
|
def index
|
2023-06-04 11:30:43 +02:00
|
|
|
@weeks = (params[:weeks] || "12").to_i
|
2023-06-10 11:03:32 +02:00
|
|
|
@members = Member.visible_scope.
|
|
|
|
where("leaving > ? " , Date.today).
|
|
|
|
where("arriving < ? " , Date.today.at_beginning_of_month + @weeks.weeks).
|
|
|
|
order(:arriving).
|
|
|
|
page(1).per(50)
|
2023-06-03 17:09:23 +02:00
|
|
|
end
|
|
|
|
end
|