class Gamefic::Query::Descendants
Query
the subject’s children and accessible grandchildren.
Public Instance Methods
Source
# File lib/gamefic/query/descendants.rb, line 10 def span(subject) subject.children.flat_map do |child| [child] + subquery_accessible(child) end end