Skip to content

Commit

Permalink
Remove call to dead ActiveFedora code
Browse files Browse the repository at this point in the history
This conditional was needed to support ActiveFedora 11. We have since dropped
support, so the check is no longer needed.
  • Loading branch information
Tom Johnson authored and Tom Johnson committed Jan 9, 2020
1 parent d646a36 commit eed3e63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/search_builders/hyrax/filter_by_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def models
end

def models_to_solr_clause
# to_class_uri is deprecated in AF 11
[ActiveFedora::Base.respond_to?(:to_rdf_representation) ? models.map(&:to_rdf_representation) : models.map(&:to_class_uri)].join(',')
models.map(&:to_rdf_representation).join(',')
end

def generic_type_field
Expand Down

0 comments on commit eed3e63

Please sign in to comment.