Class: FacetedSearch::Facets::FullTree

Inherits:
DefaultList show all
Defined in:
app/models/faceted_search/facets/full_tree.rb

Instance Attribute Summary

Attributes inherited from Default

#facets, #name, #params

Instance Method Summary collapse

Methods inherited from DefaultList

#add_scope, #display_method, #find_by, #path_for, #source, #value_selected?, #values

Methods inherited from Default

#add_scope, #initialize, #kind, #path, #path_for, #title, #to_s

Constructor Details

This class inherits a constructor from FacetedSearch::Facets::Default

Instance Method Details

#values_with_parent(parent_id) ⇒ Object



3
4
5
# File 'app/models/faceted_search/facets/full_tree.rb', line 3

def values_with_parent(parent_id)
  values.select { |v| v.parent_id ==  parent_id }
end