Skip to content

Commit

Permalink
Merge pull request #413 from trln/rails-7-deprecations
Browse files Browse the repository at this point in the history
Rails 7/ BL 8 deprecation fix
  • Loading branch information
kazymovae authored Feb 9, 2024
2 parents 0307c8f + a5ee569 commit 21678d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/trln_argon/view_helpers/trln_argon_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ def join_with_comma_semicolon_fallback(options = {})
options[:value].join(', ')
end

# @todo facets_from_request is removed in BL 8 https://github.com/projectblacklight/blacklight/commit/5b2def753dc3724bae5d3d4e70a69ed6453e185b
def display_facet_hit_count(the_facet, the_value)
hits = facets_from_request.select { |f| f.name == the_facet }
hits = facets_from_request(facet_field_names, @response).select { |f| f.name == the_facet }
.map(&:items)
.first
.select { |i| i.value == the_value }
Expand Down

0 comments on commit 21678d8

Please sign in to comment.