lib/bugsnag/api/client/errors.rb in bugsnag-api-2.0.1 vs lib/bugsnag/api/client/errors.rb in bugsnag-api-2.0.2

- old
+ new

@@ -40,10 +40,12 @@ def update_errors(project_id, ids, operation, options = {}) case ids when String patch "projects/#{project_id}/errors/#{ids}", options.merge({:operation => operation}) when Array - patch "projects/#{project_id}/errors", options.merge({:operation => operation, :query => {:error_ids => ids.join(' ')}}) + defaults = {:operation => operation, :query => {:error_ids => ids.join(' ')}} + merged_opts = deep_merge(defaults, options) + patch "projects/#{project_id}/errors", merged_opts else raise ArgumentError, "ids must be a String or an Array" end end \ No newline at end of file