app/models/mixins/relationship_mixin.rb
# Returns the subtree relationships arranged in a tree
Returns the subtree relationships arranged in a tree
Returns the subtree relationships arranged in a tree
def subtree_rels_arranged(*args)
    options = args.extract_options!
    rel = relationship(:raise_on_multiple => true)
    return {} if rel.nil?  
    Relationship.filter_arranged_rels_by_resource_type(rel.subtree.arrange, options)
  end
def subtree_rels_arranged ( * args ) options = args . extract_options! rel = relationship ( :raise_on_multiple => true ) return { } if rel . nil? Relationship . filter_arranged_rels_by_resource_type ( rel . subtree . arrange , options ) end
Returns the subtree relationships arranged in a tree
Returns the subtree relationships arranged in a tree
# TODO: Should this return nil or init_relationship or Relationship.new in a Hash?
args
<not_specific>