# File lib/dm-core/associations/relationship.rb, line 62 def parent_model return @parent_model if model_defined?(@parent_model) @parent_model = @child_model.find_const(@parent_model) rescue NameError raise NameError, "Cannot find the parent_model #{@parent_model} for #{@child_model}" end