lib/devise_jwt_auth/rails/routes.rb
# this allows us to use namespaced paths without namespacing the routes
this allows us to use namespaced paths without namespacing the routes
this allows us to use namespaced paths without namespacing the routes
def unnest_namespace
      current_scope = @scope.dup
      yield
    ensure
      @scope = current_scope
    end
def unnest_namespace current_scope = @scope . dup yield ensure @scope = current_scope end
this allows us to use namespaced paths without namespacing the routes
this allows us to use namespaced paths without namespacing the routes