mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unnecessary variable route
The variable `route` was only allocated to hold an object that was immediately returned. This patch removes that variable.
This commit is contained in:
parent
aa1ba9cb24
commit
c93bad2070
1 changed files with 2 additions and 11 deletions
|
@ -160,17 +160,8 @@ module ActionDispatch
|
||||||
end
|
end
|
||||||
|
|
||||||
def make_route(name, precedence)
|
def make_route(name, precedence)
|
||||||
route = Journey::Route.new(name,
|
Journey::Route.new(name, application, path, conditions, required_defaults,
|
||||||
application,
|
defaults, request_method, precedence, @internal)
|
||||||
path,
|
|
||||||
conditions,
|
|
||||||
required_defaults,
|
|
||||||
defaults,
|
|
||||||
request_method,
|
|
||||||
precedence,
|
|
||||||
@internal)
|
|
||||||
|
|
||||||
route
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def application
|
def application
|
||||||
|
|
Loading…
Reference in a new issue