Class: Question
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Question
- 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_title ⇒ Object
27 28 29 30 31 |
# File 'app/models/question.rb', line 27 def category_title return category.title if category.present? 'Category lost!' end |