module Enjoy::Faq::Models::Mongoid::Category
Public Instance Methods
all_questions()
click to toggle source
# File lib/enjoy/faq/models/mongoid/category.rb, line 24 def all_questions question_class.any_in(question_category_ids: self.self_and_descendants.map(&:id)) end
questions()
click to toggle source
# File lib/enjoy/faq/models/mongoid/category.rb, line 20 def questions question_class.in(question_category_ids: self.id) end