Sha256: 442b44edf30420a95eb6c7f0b95f939273afb848429bc7fe3e6376092ea645b1

Contents?: true

Size: 412 Bytes

Versions: 5

Compression:

Stored size: 412 Bytes

Contents

module ActiveRecordSurvey
	# Validations that should be run against a node
	class NodeValidation < ::ActiveRecord::Base
		self.table_name = "active_record_survey_node_validations"
		belongs_to :node, :class_name => "ActiveRecordSurvey::Node", :foreign_key => :active_record_survey_node_id
		
		# By default everything is valid! WOOO!
		def validate_instance_node(instance_node, node = nil)
			true
		end
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_record_survey-0.1.5 lib/active_record_survey/node_validation.rb
active_record_survey-0.1.4 lib/active_record_survey/node_validation.rb
active_record_survey-0.1.3 lib/active_record_survey/node_validation.rb
active_record_survey-0.1.2 lib/active_record_survey/node_validation.rb
active_record_survey-0.1.1 lib/active_record_survey/node_validation.rb