Module: GenericTableAssociation::Assertions::ClassMethods

Includes:
DefaultAssertions::ClassMethods
Included in:
GenericTableAssociation
Defined in:
app/models/generic_table_association.rb

Instance Method Summary collapse

Instance Method Details

#assert_foreign_keys_not_nilObject

All records and all foreign keys are not nil


368
369
370
371
372
# File 'app/models/generic_table_association.rb', line 368

def assert_foreign_keys_not_nil
	all.each do |record|
		record.assert_foreign_keys_not_nil
	end #each
end

#assert_invariantObject


378
379
380
# File 'app/models/generic_table_association.rb', line 378

def assert_invariant
#	fail "end of instance assert_pre_conditions"
end

#assert_post_conditionsObject

assert_pre_conditions


376
377
# File 'app/models/generic_table_association.rb', line 376

def assert_post_conditions
end

#assert_pre_conditionsObject

assert_foreign_keys_not_nil


373
374
375
# File 'app/models/generic_table_association.rb', line 373

def assert_pre_conditions
#	fail "end of class assert_pre_conditions "
end