Make compatible with Rails 4 - ActionDispatch::MiddlewareStack is now an Enumeratble not an Array