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