Module: Enjoy::Faq::Models::Mongoid::Question
- Extended by:
- ActiveSupport::Concern
- Includes:
- HtmlField
- Defined in:
- lib/enjoy/faq/models/mongoid/question.rb
Instance Method Summary collapse
Instance Method Details
#author_name_output ⇒ Object
44 45 46 |
# File 'lib/enjoy/faq/models/mongoid/question.rb', line 44 def self..blank? ? self. : self. end |
#category ⇒ Object
36 37 38 |
# File 'lib/enjoy/faq/models/mongoid/question.rb', line 36 def category self.categories.enabled.sorted.first end |
#question_text_output ⇒ Object
40 41 42 |
# File 'lib/enjoy/faq/models/mongoid/question.rb', line 40 def question_text_output self.question_text_after_editing.blank? ? self.question_text : self.question_text_after_editing end |