app/models/mixins/relationship_mixin.rb
# Returns a list of all relationships in the tree from the root
Returns a list of all relationships in the tree from the root
Returns a list of all relationships in the tree from the root
def fulltree_rels(*args)
    options = args.extract_options!
    return [] if self.is_isolated_root? 
    root_id = relationship.root_id
    rels = Relationship.subtree_of(root_id).uniq
    Relationship.filter_by_resource_type(rels, options)
  end
def fulltree_rels ( * args ) options = args . extract_options! return [ ] if self . is_isolated_root? root_id = relationship . root_id rels = Relationship . subtree_of ( root_id ) . uniq Relationship . filter_by_resource_type ( rels , options ) end
Returns a list of all relationships in the tree from the root
Returns a list of all relationships in the tree from the root
# TODO: Should this return nil or init_relationship or Relationship.new in an Array?
args
<not_specific>