Class: Survey::Option
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Survey::Option
- Defined in:
- app/models/survey/option.rb
Instance Method Summary collapse
Instance Method Details
#correct? ⇒ Boolean
26 27 28 |
# File 'app/models/survey/option.rb', line 26 def correct? self.correct == true end |
#text ⇒ Object
30 31 32 |
# File 'app/models/survey/option.rb', line 30 def text I18n.locale == I18n.default_locale ? super : locale_text.blank? ? super : locale_text end |
#to_s ⇒ Object
22 23 24 |
# File 'app/models/survey/option.rb', line 22 def to_s self.text end |