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