module Hancock::Faq::Models::Mongoid::Category
Public Instance Methods
all_questions()
click to toggle source
# File lib/hancock/faq/models/mongoid/category.rb, line 26 def all_questions question_class.any_in(category_ids: self.and_descendants.map(&:id)) end
questions()
click to toggle source
# File lib/hancock/faq/models/mongoid/category.rb, line 22 def questions question_class.in(category_ids: self.id) end