app/controllers/mixins/breadcrumbs_mixin.rb
# Build ancestry parents if user provides an ancestry key
Build ancestry parents if user provides an ancestry key
Build ancestry parents if user provides an ancestry key
def ancestry_parents(parent_class, record, title)
      breadcrumbs = []
      while record.ancestry
        record = parent_class.find(record.ancestry)
        breadcrumbs.push(:title => record[title], :key => TreeBuilder.build_node_id(record))
      end
      breadcrumbs.reverse
    end
def ancestry_parents ( parent_class , record , title ) breadcrumbs = [ ] while record . ancestry record = parent_class . find ( record . ancestry ) breadcrumbs . push ( :title => record [ title ] , :key => TreeBuilder . build_node_id ( record ) ) end breadcrumbs . reverse end
Build ancestry parents if user provides an ancestry key
Build ancestry parents if user provides an ancestry key
parent_class
<not_specific>
record
<not_specific>
title
<not_specific>