Skip to content

Commit

Permalink
make PresenterFactory Ruby 3 kwargs friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsin johnson authored and tamsin johnson committed Apr 26, 2023
1 parent 74b83f7 commit 66a66ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/presenters/hyrax/presenter_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def load_docs
end

# Query solr using POST so that the query doesn't get too large for a URI
def query(query, args = {})
result = Hyrax::SolrService.post(query, args)
def query(query, **opts)
result = Hyrax::SolrService.post(query, **opts)
result.fetch('response').fetch('docs')
end
end
Expand Down

0 comments on commit 66a66ce

Please sign in to comment.