Skip to content

Commit 0dfef8b

Browse files
committed
Merge pull request rails#28106 from jerry-tao/master
Remove unused params in RouteSet#add_route
2 parents 228c6c0 + 6ddd65c commit 0dfef8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

actionpack/lib/action_dispatch/routing/mapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ def add_route(action, controller, options, _path, to, via, formatted, anchor, op
19041904
ast = Journey::Parser.parse path
19051905

19061906
mapping = Mapping.build(@scope, @set, ast, controller, default_action, to, via, formatted, options_constraints, anchor, options)
1907-
@set.add_route(mapping, ast, as, anchor)
1907+
@set.add_route(mapping, as)
19081908
end
19091909

19101910
def match_root_route(options)

actionpack/lib/action_dispatch/routing/route_set.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def empty?
565565
routes.empty?
566566
end
567567

568-
def add_route(mapping, path_ast, name, anchor)
568+
def add_route(mapping, name)
569569
raise ArgumentError, "Invalid route name: '#{name}'" unless name.blank? || name.to_s.match(/^[_a-z]\w*$/i)
570570

571571
if name && named_routes[name]

0 commit comments

Comments
 (0)