Sha256: 16ec23d4d85890278c2ab3f8a4b9122a391e3a728cd7fd8b49d928565bdf4d2c

Contents?: true

Size: 251 Bytes

Versions: 19

Compression:

Stored size: 251 Bytes

Contents

module MongoMapper
  module Associations
    class ManyPolymorphicProxy < ManyDocumentsProxy
      private
        def apply_scope(doc)
          doc.send("#{@association.type_key_name}=", doc.class.name)
          super
        end
    end
  end
end

Version data entries

19 entries across 19 versions & 5 rubygems

Version Path
mongo_mapper-0.6.6 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.12.4 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
danielharan-mongo_mapper-0.6.5 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.6.5 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
webbynode-mongo_mapper-0.6.4 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.6.4 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.6.3 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.6.2 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.6.1 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.11.18 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.6.0 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.11.8 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.11.6 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
djsun-mongo_mapper-0.5.8.2 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
djsun-mongo_mapper-0.5.8.1 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.11.2 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.10.31 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.5.8 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.5.7 lib/mongo_mapper/associations/many_polymorphic_proxy.rb