mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Constraints#app should never return another Constraints object, so switch to if statement
This commit is contained in:
parent
b6ec5e2c14
commit
8a51ec0158
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module ActionDispatch
|
|||
# to pass a Constraints object to this constructor, but there were
|
||||
# multiple places that kept testing children of this object. I
|
||||
# *think* they were just being defensive, but I have no idea.
|
||||
while app.is_a?(self.class)
|
||||
if app.is_a?(self.class)
|
||||
constraints += app.constraints
|
||||
app = app.app
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue