Module: SurveyorGui::Models::QuestionAndGroupSharedMethods
- Included in:
- QuestionGroupMethods, QuestionMethods
- Defined in:
- lib/surveyor_gui/models/question_and_group_shared_methods.rb
Instance Method Summary collapse
Instance Method Details
#controlling_questions ⇒ Object
4 5 6 7 8 |
# File 'lib/surveyor_gui/models/question_and_group_shared_methods.rb', line 4 def controlling_questions dependencies = [] dependencies << self.dependency dependencies.map{|d| d.dependency_conditions.map{|dc| dc.question.part_of_group? ? dc.question.question_group.questions.last : dc.question}}.flatten.uniq end |