Module: SurveyMetamodel::ChoiceQuestion::ClassModule
- Defined in:
- lib/generators/survey/metamodels/model.rb
Instance Method Summary collapse
Instance Method Details
#real_choices ⇒ Object
100 101 102 103 104 105 106 107 108 |
# File 'lib/generators/survey/metamodels/model.rb', line 100 def real_choices if self.is_a?(ChoiceQuestion) if !choices_s.blank? and choices.empty? choices_by_s(choices_s) else choices end end end |