# File lib/dm-core/associations/relationship.rb, line 155 def child_model @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