Move poll shifts form partial to a component

Thanks to it, we can move a few helper methods to the component.
This commit is contained in:
Javi Martín
2024-10-12 18:23:54 +02:00
parent 9ab6c15975
commit ee34ead4ee
7 changed files with 67 additions and 54 deletions

View File

@@ -5,8 +5,6 @@ class Admin::Poll::ShiftsController < Admin::Poll::BaseController
def new
load_shifts
@shift = ::Poll::Shift.new
@voting_polls = @booth.polls.current
@recount_polls = @booth.polls.current_or_recounting
end
def create