app/models/mixins/relationship_mixin.rb
# Returns a list of all relationships in the record's subtree
Returns a list of all relationships in the record's subtree
Returns a list of all relationships in the record ' s subtree
def subtree_rels(*args)
    options = args.extract_options!
    rels = relationships.flat_map(&:subtree).uniq
    Relationship.filter_by_resource_type(rels, options)
  end
def subtree_rels ( * args ) options = args . extract_options! rels = relationships . flat_map ( & :subtree ) . uniq Relationship . filter_by_resource_type ( rels , options ) end
Returns a list of all relationships in the record's subtree
Returns a list of all relationships in the record ' s subtree
args
<not_specific>