module Hancock::Faq::Models::Mongoid::Question

Public Instance Methods

author_name_output() click to toggle source
# File lib/hancock/faq/models/mongoid/question.rb, line 49
def author_name_output
  self.author_name_text_after_editing.blank? ? self.author_name : self.author_name_text_after_editing
end
category() click to toggle source
# File lib/hancock/faq/models/mongoid/question.rb, line 41
def category
  self.categories.enabled.sorted.first
end
question_text_output() click to toggle source
# File lib/hancock/faq/models/mongoid/question.rb, line 45
def question_text_output
  self.question_text_after_editing.blank? ? self.question_text : self.question_text_after_editing
end