app/models/mixins/relationship_mixin.rb
# Returns all of the relationships of the parents of the record, [] for a root node
Returns all of the relationships of the parents of the record, [] for a root node
Returns all of the relationships of the parents of the record [] for a root node
def parent_rels(*args)
    options = args.extract_options!
    rels = relationships.collect(&:parent).compact
    Relationship.filter_by_resource_type(rels, options)
  end
def parent_rels ( * args ) options = args . extract_options! rels = relationships . collect ( & :parent ) . compact Relationship . filter_by_resource_type ( rels , options ) end
Returns all of the relationships of the parents of the record, [] for a root node
Returns all of the relationships of the parents of the record [] for a root node
args
<not_specific>