spec/dummy_app/config/routes.rb in the_comments-2.1.0 vs spec/dummy_app/config/routes.rb in the_comments-2.2.0
- old
+ new
@@ -9,7 +9,10 @@
get "signup" => "users#new", as: :signup
post "sessions" => "sessions#create", as: :sessions
resources :posts
- mount TheComments::Engine => '/', as: :comments
+ # TheComments routes
+ concern :user_comments, TheComments::UserRoutes.new
+ concern :admin_comments, TheComments::AdminRoutes.new
+ resources :comments, concerns: [:user_comments, :admin_comments]
end