lib/active_record_survey/node/question.rb
def next_questions
			list = []

			if question_node_map = self.survey.node_maps.select { |i|
				i.node == self && !i.marked_for_destruction?
			}.first
				question_node_map.children.each { |child|
					if !child.node.nil? && !child.marked_for_destruction?
						if child.node.class.ancestors.include?(::ActiveRecordSurvey::Node::Question)
							list << child.node
						elsif child.node.class.ancestors.include?(::ActiveRecordSurvey::Node::Answer)
							list << child.node.next_question 
						end
					end
				}
			end

			list.compact.uniq
		end
def next_questions
			list = []

			if question_node_map = self.survey.node_maps.select { |i|
				i.node == self && !i.marked_for_destruction?
			}.first
				question_node_map.children.each { |child|
					if !child.node.nil? && !child.marked_for_destruction?
						if child.node.class.ancestors.include?(::ActiveRecordSurvey::Node::Question)
							list << child.node
						elsif child.node.class.ancestors.include?(::ActiveRecordSurvey::Node::Answer)
							list << child.node.next_question 
						end
					end
				}
			end

			list.compact.uniq
		end
Returns the questions that follows this question (either directly or via its answers)