# File lib/action_dispatch/routing/mapper.rb, line 1115 def root(options={}) if @scope[:scope_level] == :resources with_scope_level(:root) do scope(parent_resource.path) do super(options) end end else super(options) end end