sitepress-core/lib/sitepress/node.rb
# Returns all parents up to the root node.
Returns all parents up to the root node.
Returns all parents up to the root node .
def parents
      parents = []
      node = parent
      while node do
        parents << node
        node = node.parent
      end
      parents
    end
def parents parents = [ ] node = parent while node do parents << node node = node . parent end parents end
Returns all parents up to the root node.
Returns all parents up to the root node .