# File lib/dm-core/associations/relationship.rb, line 168 def child_model return @child_model if defined?(@child_model) child_model_name = self.child_model_name @child_model = (@parent_model || Object).find_const(child_model_name) rescue NameError raise NameError, "Cannot find the child_model #{child_model_name} for #{parent_model_name} in #{name}" end