Method: ActiveRecordSurvey::Survey#as_map

Defined in:
lib/active_record_survey/survey.rb

#as_map(*args) ⇒ Object



39
40
41
42
43
44
45
46
# File 'lib/active_record_survey/survey.rb', line 39

def as_map(*args)
	options = args.extract_options!
	options[:node_maps] ||= self.node_maps

	self.node_maps.select { |i| !i.parent && !i.marked_for_destruction? }.collect { |i|
		i.as_map(options)
	}
end