module Gamefic::Query::Subqueries
Public Instance Methods
Source
# File lib/gamefic/query/subqueries.rb, line 10 def subquery_accessible(entity) entity.accessible.flat_map do |child| [child] + subquery_accessible(child) end end
Return an array of the entity’s accessible descendants.
@param entity [Entity] @return [Array<Entity>]