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