# File lib/mongo_mapper/plugins/associations/one_embedded_polymorphic_proxy.rb, line 6
        def replace(value)
          @value = value.respond_to?(:attributes) ? value.attributes.merge(association.type_key_name => value.class.name) : value
          reset
        end