File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,7 @@ class BarController < ActionController::Base
77end
88
99ActionController ::Base . new . render_to_string ( template : 'foo' , locals : { bar : 'baz' } )
10+
11+ class FooService
12+ include ActionDispatch ::Routing ::RouteSet . new . url_helpers
13+ end
Original file line number Diff line number Diff line change 33
44class BarController < ActionController::Base
55end
6+
7+ class FooService
8+ end
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ module ActionDispatch
7171 class RouteSet
7272 def draw : () { () [self : Mapper] -> untyped } -> nil
7373
74- def url_helpers : (?bool supports_path) -> RouteSet_AnonymousModule
74+ def url_helpers : (?bool supports_path) -> singleton ( RouteSet_AnonymousModule)
7575
7676 module RouteSet_AnonymousModule
7777 include ActiveSupport::Concern
You can’t perform that action at this time.
0 commit comments