Skip to content

Commit

Permalink
Don't use predicate uri as a solr key, colins and slashes are not sup…
Browse files Browse the repository at this point in the history
…ported
  • Loading branch information
jcoyne committed Dec 1, 2014
1 parent 2585da1 commit b81297e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/active_fedora/reflection.rb
Expand Up @@ -192,7 +192,10 @@ def predicate
end

def solr_key
ActiveFedora::SolrQueryBuilder.solr_name(predicate.to_s, :symbol)
@solr_key ||= begin
predicate_string = predicate.fragment || predicate.to_s.rpartition(/\//).last
ActiveFedora::SolrQueryBuilder.solr_name(predicate_string, :symbol)
end
end

def check_validity!
Expand Down

0 comments on commit b81297e

Please sign in to comment.