Class: Question

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
TranslationCms::WhiteList
Defined in:
app/models/question.rb

Overview

Schema Information

Table name: questions

id                   :integer          not null, primary key
sort_order           :integer          default(1)
created_at           :datetime
updated_at           :datetime
title_translations   :hstore           default({})
content_translations :hstore           default({})

Instance Method Summary collapse

Instance Method Details

#category_titleObject



27
28
29
30
31
# File 'app/models/question.rb', line 27

def category_title
  return category.title if category.present?

  'Category lost!'
end