# File lib/dm-core/associations/one_to_one.rb, line 27 def set(source, target) assert_kind_of 'source', source, source_model assert_kind_of 'target', target, target_model, Hash, NilClass relationship.set(source, [ target ].compact).first end