Make polymorphic_path work with booth assignments

This commit is contained in:
Javi Martín
2020-06-08 22:57:40 +02:00
parent f76930aab6
commit 94a1865217
3 changed files with 14 additions and 1 deletions

View File

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