Move resolve clauses to the main routes file

We're going to add some constraints in the routes file, and if we add a
`resolve` clause inside a constraints block, we get an error saying that
"The resolve method can't be used inside a routes scope block" when
starting the application.
This commit is contained in:
Javi Martín
2023-01-09 17:47:37 +01:00
committed by taitus
parent 601873f16f
commit 60dbda600d
6 changed files with 31 additions and 31 deletions

View File

@@ -1,5 +1,3 @@
resources :communities, only: [:show] do
resources :topics
end
resolve("Topic") { |topic, options| [topic.community, topic, options] }