Skip to content

Commit 28d42a5

Browse files
authored
Merge pull request rails#53086 from joeldrapper/fix-lazy-route-set-method-missing-super
2 parents 8a2e28d + 723452c commit 28d42a5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

railties/lib/rails/engine/lazy_route_set.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,19 @@ def routes
8787
def method_missing_module
8888
@method_missing_module ||= Module.new do
8989
private
90-
def method_missing(method_name, *args, &block)
90+
def method_missing(...)
9191
if Rails.application&.reload_routes_unless_loaded
92-
public_send(method_name, *args, &block)
92+
public_send(...)
9393
else
94-
super(method_name, *args, &block)
94+
super
9595
end
9696
end
9797

98-
def respond_to_missing?(method_name, *args)
98+
def respond_to_missing?(...)
9999
if Rails.application&.reload_routes_unless_loaded
100-
respond_to?(method_name, *args)
100+
respond_to?(...)
101101
else
102-
super(method_name, *args)
102+
super
103103
end
104104
end
105105
end

0 commit comments

Comments
 (0)