Skip to content

Commit 98f3ee2

Browse files
committed
Ensure Rails::Engine::LazyRouteSet, AD::Routing::RouteSet::* are private
1 parent 7645f01 commit 98f3ee2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

actionpack/lib/action_dispatch/routing/route_set.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class RouteSet
2929
def from_requirements(requirements)
3030
routes.find { |route| route.requirements == requirements }
3131
end
32-
# :stopdoc:
32+
# :enddoc:
3333

3434
# Since the router holds references to many parts of the system like engines,
3535
# controllers and the application itself, inspecting the route set can actually
@@ -953,6 +953,5 @@ def recognize_path_with_request(req, path, extras, raise_on_missing: true)
953953
end
954954
end
955955
end
956-
# :startdoc:
957956
end
958957
end

railties/lib/rails/engine/lazy_route_set.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
require "action_dispatch/routing/route_set"
66

7+
# :enddoc:
8+
79
module Rails
810
class Engine
9-
class LazyRouteSet < ActionDispatch::Routing::RouteSet # :nodoc:
11+
class LazyRouteSet < ActionDispatch::Routing::RouteSet
1012
class NamedRouteCollection < ActionDispatch::Routing::RouteSet::NamedRouteCollection
1113
def route_defined?(name)
1214
Rails.application&.reload_routes_unless_loaded

0 commit comments

Comments
 (0)