Yup, removing flatten causes the test cases to fail (with the dependency to return).. it's the same logic as what needs to be in 3-2-stable in rails/rails.