spaceship/lib/spaceship/connect_api/models/device.rb in fastlane-2.132.0.beta.20190929200020 vs spaceship/lib/spaceship/connect_api/models/device.rb in fastlane-2.132.0.beta.20190930200026
- old
+ new
@@ -44,10 +44,10 @@
# API
#
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
resps = Spaceship::ConnectAPI.get_devices(filter: filter, includes: includes).all_pages
- return resps.map(&:to_models).flatten
+ return resps.flat_map(&:to_models)
end
end
end
end