Sha256: e457d49d872b56de371042bfb8dc5cb9e9d2b6223e25c0543ec948664d932f4f

Contents?: true

Size: 313 Bytes

Versions: 5

Compression:

Stored size: 313 Bytes

Contents

module ActiveRecordSurvey
	class Node::Question < Node
		# Stop validating at the Question node
		def validate_parent_instance_node(instance_node, child_node)
			!self.node_validations.collect { |node_validation|
				node_validation.validate_instance_node(instance_node, self)
			}.include?(false)
		end
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_record_survey-0.1.12 lib/active_record_survey/node/question.rb
active_record_survey-0.1.11 lib/active_record_survey/node/question.rb
active_record_survey-0.1.10 lib/active_record_survey/node/question.rb
active_record_survey-0.1.9 lib/active_record_survey/node/question.rb
active_record_survey-0.1.8 lib/active_record_survey/node/question.rb