recounts can be made from poll's first day

This commit is contained in:
Juanjo Bazán
2017-01-27 15:18:35 +01:00
parent 51be80eedc
commit 3d28b317e2

View File

@@ -2,7 +2,7 @@ class Officing::PollsController < Officing::BaseController
def index
@polls = current_user.poll_officer? ? current_user.poll_officer.assigned_polls : []
@polls = @polls.select {|poll| poll.current?(1.day.ago)}
@polls = @polls.select {|poll| poll.current?(Time.current) || poll.current?(1.day.ago)}
end
end