Skip to content

Commit 8e7f2ac

Browse files
committed
Fix dynamic controller argument deprecation warning.
Be gone! ``` DEPRECATION WARNING: Using a dynamic :controller segment in a route is deprecated and will be removed in Rails 5.2. (called from block in setup at /Users/kasperhansen/Documents/code/rails-observers/test/sweeper_test.rb:33) ```
1 parent 4d3a671 commit 8e7f2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sweeper_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setup
3030
@routes = SharedTestRoutes
3131

3232
@routes.draw do
33-
get ':controller(/:action)'
33+
get 'sweeper_test/show'
3434
end
3535

3636
super

0 commit comments

Comments
 (0)