Make polymorphic_path work with poll shifts

This commit is contained in:
Javi Martín
2020-06-09 00:14:27 +02:00
parent 94a1865217
commit 289eb96561
3 changed files with 12 additions and 1 deletions

View File

@@ -282,6 +282,10 @@ resolve "Poll::BoothAssignment" do |assignment, options|
[assignment.poll, :booth_assignment, options.merge(id: assignment)]
end
resolve "Poll::Shift" do |shift, options|
[:booth, :shift, options.merge(booth_id: shift.booth, id: shift)]
end
resolve "Poll::Officer" do |officer, options|
[:officer, options.merge(id: officer)]
end