app/models/mixins/relationship_mixin.rb
# Returns a list of the path relationships, starting with the root relationship
#   and ending with the node's own relationship
Returns a list of the path relationships, starting with the root relationship
and ending with the node's own relationship
Returns a list of the path relationships starting with the root relationship and ending with the node ' s own relationship
def path_rels(*args)
    options = args.extract_options!
    rel = relationship(:raise_on_multiple => true) 
    rels = rel.nil? ? [] : rel.path
    Relationship.filter_by_resource_type(rels, options)
  end
def path_rels ( * args ) options = args . extract_options! rel = relationship ( :raise_on_multiple => true ) rels = rel . nil? ? [ ] : rel . path Relationship . filter_by_resource_type ( rels , options ) end
Returns a list of the path relationships, starting with the root relationship
and ending with the node's own relationship
Returns a list of the path relationships starting with the root relationship and ending with the node ' s own relationship
# TODO: Handle multiple nodes with a way to detect which node you want
args
<not_specific>