Method: ActionDispatch::Routing::RouteSet.new_with_config
- Defined in:
- actionpack/lib/action_dispatch/routing/route_set.rb
.new_with_config(config) ⇒ Object
365 366 367 368 369 370 371 372 373 374 375 376 377 378 |
# File 'actionpack/lib/action_dispatch/routing/route_set.rb', line 365 def self.new_with_config(config) route_set_config = DEFAULT_CONFIG # engines apparently don't have this set if config.respond_to? :relative_url_root route_set_config.relative_url_root = config.relative_url_root end if config.respond_to? :api_only route_set_config.api_only = config.api_only end new route_set_config end |