mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
one fewer is_a check
This commit is contained in:
parent
8a51ec0158
commit
c1bc70e229
1 changed files with 3 additions and 4 deletions
|
@ -14,11 +14,10 @@ module ActionDispatch
|
||||||
|
|
||||||
def rack_app(app = self.app)
|
def rack_app(app = self.app)
|
||||||
@rack_app ||= begin
|
@rack_app ||= begin
|
||||||
app = app.app
|
endpoint = app.app
|
||||||
class_name = app.class.name.to_s
|
|
||||||
|
|
||||||
if ActionDispatch::Routing::Redirect === app || class_name !~ /^ActionDispatch::Routing/
|
if ActionDispatch::Routing::Redirect === endpoint || !app.dispatcher?
|
||||||
app
|
endpoint
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue