# File lib/dm-core/associations/many_to_one.rb, line 75 def resource_for(source, other_query = nil) query = query_for(source, other_query) # TODO: lookup the resource in the Identity Map, and make sure # it matches the query criteria, otherwise perform the query target_model.first(query) end