Class: Survey::Question
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Survey::Question
- Defined in:
- app/models/survey/question.rb
Instance Method Summary collapse
- #correct_options ⇒ Object
- #description ⇒ Object
- #head_number ⇒ Object
- #incorrect_options ⇒ Object
- #mandatory? ⇒ Boolean
- #text ⇒ Object
Instance Method Details
#correct_options ⇒ Object
29 30 31 |
# File 'app/models/survey/question.rb', line 29 def .correct end |
#description ⇒ Object
41 42 43 |
# File 'app/models/survey/question.rb', line 41 def description I18n.locale == I18n.default_locale ? super : locale_description.blank? ? super : locale_description end |
#head_number ⇒ Object
45 46 47 |
# File 'app/models/survey/question.rb', line 45 def head_number I18n.locale == I18n.default_locale ? super : locale_head_number.blank? ? super : locale_head_number end |
#incorrect_options ⇒ Object
33 34 35 |
# File 'app/models/survey/question.rb', line 33 def .incorrect end |
#mandatory? ⇒ Boolean
49 50 51 |
# File 'app/models/survey/question.rb', line 49 def mandatory? self.mandatory == true end |
#text ⇒ Object
37 38 39 |
# File 'app/models/survey/question.rb', line 37 def text I18n.locale == I18n.default_locale ? super : locale_text.blank? ? super : locale_text end |