app/models/mixins/relationship_mixin.rb
# Returns the relationships in the tree from the root arranged in a tree
Returns the relationships in the tree from the root arranged in a tree
Returns the relationships in the tree from the root arranged in a tree
def fulltree_rels_arranged(*args)
    options = args.extract_options!
    return {} if self.is_isolated_root? 
    root_id = relationship.root_id
    rels = Relationship.subtree_of(root_id).arrange
    Relationship.filter_arranged_rels_by_resource_type(rels, options)
  end
def fulltree_rels_arranged ( * args ) options = args . extract_options! return { } if self . is_isolated_root? root_id = relationship . root_id rels = Relationship . subtree_of ( root_id ) . arrange Relationship . filter_arranged_rels_by_resource_type ( rels , options ) end
Returns the relationships in the tree from the root arranged in a tree
Returns the relationships in the tree from the root arranged in a tree
# TODO: Should this return nil or init_relationship or Relationship.new in a Hash?
args
<not_specific>