fixes conflicts with polls

This commit is contained in:
rgarcia
2017-01-29 00:44:56 +01:00
10 changed files with 185 additions and 73 deletions

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