lib/active_record_survey/node/question.rb
def remove_link
			return true if (questions = self.next_questions).length === 0

			# Remove the link to any direct questions
			self.survey.node_maps.select { |i|
				i.node == self
			}.each { |node_map|
				self.survey.node_maps.select { |j|
					node_map.children.include?(j) 
				}.each { |child|
					if child.node.class.ancestors.include?(::ActiveRecordSurvey::Node::Question)
						child.parent = nil
						child.send((child.new_record?)? :destroy : :mark_for_destruction )
					end
				}
			}

			# remove link any answeres that have questions
			self.answers.collect { |i|
				i.remove_link
			}
		end
def remove_link
			return true if (questions = self.next_questions).length === 0

			# Remove the link to any direct questions
			self.survey.node_maps.select { |i|
				i.node == self
			}.each { |node_map|
				self.survey.node_maps.select { |j|
					node_map.children.include?(j) 
				}.each { |child|
					if child.node.class.ancestors.include?(::ActiveRecordSurvey::Node::Question)
						child.parent = nil
						child.send((child.new_record?)? :destroy : :mark_for_destruction )
					end
				}
			}

			# remove link any answeres that have questions
			self.answers.collect { |i|
				i.remove_link
			}
		end
Removes the node_map link from this question all of its next questions