Module: Enjoy::Faq::Models::Question

Extended by:
ActiveSupport::Concern
Includes:
Enableable, Model, Seo::Seoable, Seo::SitemapDataField, ManualSlug
Included in:
Question
Defined in:
lib/enjoy/faq/models/question.rb

Instance Method Summary collapse

Instance Method Details

#category_classObject



39
40
41
# File 'lib/enjoy/faq/models/question.rb', line 39

def category_class
  Enjoy::Faq::Category
end

#full_nameObject



35
36
37
# File 'lib/enjoy/faq/models/question.rb', line 35

def full_name
  "#{self.author_name_output}: \"#{self.question_text_output}\""
end

#nameObject



31
32
33
# File 'lib/enjoy/faq/models/question.rb', line 31

def name
  "#{self.question_text_output} (#{self.author_name_output})"
end