lib/endeca/document_collection.rb in primedia-endeca-0.9.6 vs lib/endeca/document_collection.rb in primedia-endeca-0.9.7

- old
+ new

@@ -65,13 +65,12 @@ # The collection of Refinement objects for the collection. def refinements @refinements ||= (@raw['Refinements'] || []).map(&Refinement) end - # Return the uri for the refinement by name - def refinement_uri_by_name(name) - refinement = refinements.find{|ref| ref.name.downcase == name.downcase} - refinement.to_params if refinement + # Return the refinement by name + def refinement_by_name(name) + refinements.find{|ref| ref.name.downcase == name.downcase} end # List of array methods (that are not in +Object+) that need to be # delegated to +documents+. ARRAY_METHODS = (Array.instance_methods - Object.instance_methods).map { |n| n.to_s }