class Gamefic::Scope::Children
The Children
scope returns an entity’s children and all accessible descendants.
Public Instance Methods
matches()
click to toggle source
# File lib/gamefic/scope/children.rb, line 9 def matches context.children.flat_map do |c| [c] + subquery_accessible(c) end end