Replacing ActionController :: Routing :: RouteSet :: Mapper.send in Rails3 Plugin

I follow http://edgeguides.rubyonrails.org/plugins.html and in chapter 8, I was told to add: ActionController :: Routing :: RouteSet :: Mapper.send: enable, Green Woodpecker :: Routing :: MapperExtensions

To add my plugin's routes to my Rails application ...

Unfortunately, ActionController :: Routing is deprecated in Rails 3, and I did not find anything to replace it in ActionDispatch.

What should I use instead?

Thanks in advance,

Ben

+3
source share
1 answer

Use the code Keith Schacht ! :)

+1
source

Source: https://habr.com/ru/post/1768179/


All Articles