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)
|
||||
@rack_app ||= begin
|
||||
app = app.app
|
||||
class_name = app.class.name.to_s
|
||||
endpoint = app.app
|
||||
|
||||
if ActionDispatch::Routing::Redirect === app || class_name !~ /^ActionDispatch::Routing/
|
||||
app
|
||||
if ActionDispatch::Routing::Redirect === endpoint || !app.dispatcher?
|
||||
endpoint
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue