class Gamefic::Query::Extended
Query
the subject’s siblings and their descendants. Unlike ‘Family`, the subject’s descendants are excluded from results.
Descendants
need to be ‘accessible` to be included in the query.
Public Instance Methods
Source
# File lib/gamefic/query/extended.rb, line 13 def span(subject) Siblings.span(subject).flat_map do |child| [child] + subquery_accessible(child) end end