Module: ArticleFaqsHelper

Defined in:
app/helpers/article_faqs_helper.rb

Overview

View helper: article faqs.

Instance Method Summary collapse

Instance Method Details

#faq_word_count(article) ⇒ Integer

Returns the word count of an article's FAQ solution.

Parameters:

  • article (#faq_word_count)

    the article (or article FAQ) whose word count to display

Returns:

  • (Integer)

    number of words in the solution



9
10
11
# File 'app/helpers/article_faqs_helper.rb', line 9

def faq_word_count(article)
  article.faq_word_count
end