Move resolves to the bottom for a cleaner reading

This commit is contained in:
David Heinemeier Hansson
2025-04-06 20:13:09 +02:00
parent d925c64c59
commit 5275394c2d
+9 -10
View File
@@ -8,15 +8,6 @@ Rails.application.routes.draw do
end
end
resolve "Bubble" do |bubble, options|
route_for :bucket_bubble, bubble.bucket, bubble, options
end
resolve "Comment" do |comment, options|
options[:anchor] = ActionView::RecordIdentifier.dom_id(comment)
route_for :bucket_bubble, comment.bubble.bucket, comment.bubble, options
end
resources :bubbles do
scope module: :bubbles do
resource :pin
@@ -100,7 +91,15 @@ Rails.application.routes.draw do
namespace :my do
resources :pins
resource :terminal, only: [ :show, :edit ]
resolve "Bubble" do |bubble, options|
route_for :bucket_bubble, bubble.bucket, bubble, options
end
resolve "Comment" do |comment, options|
options[:anchor] = ActionView::RecordIdentifier.dom_id(comment)
route_for :bucket_bubble, comment.bubble.bucket, comment.bubble, options
end
resource :terminal, only: [ :show, :edit ]
end