Skip to content

Commit

Permalink
Use helpers instead of @view_context
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jun 20, 2022
1 parent 65470b9 commit 74a31ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/blacklight/facet_item_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def with_view_context(view_context)
def overridden_helper_methods?
return false if explicit_component_configuration?

@view_context.method(:render_facet_item).owner != Blacklight::FacetsHelperBehavior ||
@view_context.method(:render_facet_value).owner != Blacklight::FacetsHelperBehavior ||
@view_context.method(:render_selected_facet_value).owner != Blacklight::FacetsHelperBehavior
helpers.method(:render_facet_item).owner != Blacklight::FacetsHelperBehavior ||
helpers.method(:render_facet_value).owner != Blacklight::FacetsHelperBehavior ||
helpers.method(:render_selected_facet_value).owner != Blacklight::FacetsHelperBehavior
end

# Call out to the helper method equivalent of this component
Expand Down

0 comments on commit 74a31ef

Please sign in to comment.