volunteers/app/controllers/timeline_controller.rb
2023-08-27 22:58:33 +03:00

12 lines
345 B
Ruby

class TimelineController < ApplicationController
def index
@weeks = (params[:weeks] || "12").to_i
@members = Member.visible_scope.
where("leaving > ? " , Date.today).
where("arriving < ? " , helpers.start_day + @weeks.weeks).
order(:arriving).
page(1).per(50)
end
end