module ActionDispatch::Routing::Mapper::Resources

def namespace(path, options = {})

See ActionDispatch::Routing::Mapper::Scoping#namespace.
def namespace(path, options = {})
  if resource_scope?
    nested { super }
  else
    super
  end
end