Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/hancock/news/routes.rb
Instance Method Summary collapse
Instance Method Details
#hancock_cms_news_routes(config = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/hancock/news/routes.rb', line 4 def hancock_cms_news_routes(config = {}) routes_config = { use_news_path: true, use_categories_path: true, classes: { news: :news, categories: :categories }, paths: { news: :news, categories: :news_categories } } routes_config.deep_merge!(config) generate_hancock_news_user_routes(routes_config) generate_hancock_news_cms_routes(routes_config) end |