lib/modules/section_dependencies.rb
def available_questions_for_dependency_from section
       return [] if self == section || self.is_ancestor_of?(section)
       return [] if section.looping? && !self.is_descendant_of?(section)
       section.questions.find(:all, :conditions => {:answer_type_type => "MultiAnswer"})
     end
# Method to fetch the questions that belong to the argument 'section' and that are
# available for 'self' to depend on. Only questions with AnswerType of MultyAnswer should be returned
# @param [Section] section The section from which to get the available questions.
# @return [Array] Returns an array with the available questions
Method to fetch the questions that belong to the argument 'section' and that are
available for 'self' to depend on. Only questions with AnswerType of MultyAnswer should be returned
Method to fetch the questions that belong to the argument ' section ' and that are available for ' self ' to depend on . Only questions with AnswerType of MultyAnswer should be returned
def available_questions_for_dependency_from section
       return [] if self == section || self.is_ancestor_of?(section)
       return [] if section.looping? && !self.is_descendant_of?(section)
       section.questions.find(:all, :conditions => {:answer_type_type => "MultiAnswer"})
     end
def available_questions_for_dependency_from section return [ ] if self == section || self . is_ancestor_of? ( section ) return [ ] if section . looping? && ! self . is_descendant_of? ( section ) section . questions . find ( :all , :conditions => { :answer_type_type => "MultiAnswer" } ) end
Method to fetch the questions that belong to the argument 'section' and that are
available for 'self' to depend on.
Method to fetch the questions that belong to the argument ' section ' and that are available for ' self ' to depend on .
Returns an array with the available questions
Returns an array with the available questions
Array
section
section The section from which to get the available questions.
section The section from which to get the available questions .