diff --git a/lib/algolia/search_index.rb b/lib/algolia/search_index.rb index e2609b84..3bbcc48d 100644 --- a/lib/algolia/search_index.rb +++ b/lib/algolia/search_index.rb @@ -199,7 +199,7 @@ def get_object(object_id, opts = {}) def get_objects(object_ids, opts = {}) request_options = symbolize_hash(opts) attributes_to_retrieve = get_option(request_options, 'attributesToRetrieve') - request_options.delete(:attributesToRetrieve) + opts.delete(:attributesToRetrieve) requests = [] object_ids.each do |object_id|