Skip to content

Commit

Permalink
Removed some ridiculous first chaining.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Terrell committed Mar 12, 2014
1 parent ef55464 commit 287bc98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/datastream/oregon_rdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def to_solr(solr_doc = Hash.new)
val = val.solrize if val.kind_of? ActiveFedora::Rdf::Resource
Array.wrap(val).each do |solr_val|
if solr_val.kind_of?(Hash)
field_key = "#{field_key}_#{solr_val.to_a.first.first}"
solr_val = solr_val.to_a.first.last
key, solr_val = solr_val.first
field_key = "#{field_key}_#{key}"
end
self.class.create_and_insert_terms(apply_prefix(field_key), solr_val, field_info[:behaviors], solr_doc)
end
Expand Down

0 comments on commit 287bc98

Please sign in to comment.