Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove casting a SolrDocument to SolrDocument
Removes this deprecation warning ``` DEPRECATION WARNING: Blacklight::Document#initialize expects a hash-like object, received SolrDocument. (called from new at /home/travis/build/projecthydra/sufia/app/views/my/_document_list.html.erb:3) ```
- Loading branch information
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<% # container for all documents in index view -%> | ||
<div class="table-responsive" id="documents"> | ||
<%= render partial: 'my/_index_partials/default_group', locals: {docs: @response.docs.map { |x| SolrDocument.new(x) }, facet_value: nil} %> | ||
<%= render 'my/_index_partials/default_group', docs: @response.docs %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters