lib/revs-utils.rb in revs-utils-2.1.2 vs lib/revs-utils.rb in revs-utils-2.1.3

- old
+ new

@@ -86,10 +86,10 @@ total_weights += field_config[:weight].to_f end end # now we will account for the location, which has a weighting of 3 for *any* location like field having a value - location_score = (revs_location(doc_hash).blank? && doc_hash[:venue][:field].blank? && doc_hash[:event][:field].blank?) ? 0 : 1 + location_score = (revs_location(doc_hash).blank? && doc_hash[:venue].blank? && doc_hash[:event].blank?) ? 0 : 1 location_weight = 3 total_weights += location_weight total_score += (location_score * location_weight) return ((total_score/total_weights)*100).ceil