lib/tracker_api/endpoints/search.rb in tracker_api-1.9.0 vs lib/tracker_api/endpoints/search.rb in tracker_api-1.9.1

- old
+ new

@@ -8,10 +8,10 @@ end def get(project_id, query, options={}) raise ArgumentError, 'Valid query string required to search' unless query.is_a?(String) - options.key?(:body) ? options[:body][:query] = query : options[:body] = { query: query } + options[:params] = { query: query } data = client.get("/projects/#{project_id}/search", options).body raise Errors::UnexpectedData, 'Hash of search results expect' unless data.is_a? Hash Resources::SearchResultContainer.new(data)