Sha256: 8d7851379a66aa78952ff4135920e3eb215ffbc647d4ebe18c41a1df75f13fda

Contents?: true

Size: 280 Bytes

Versions: 32

Compression:

Stored size: 280 Bytes

Contents

module MongoMapper
  module Plugins
    module Associations
      class ManyPolymorphicProxy < ManyDocumentsProxy
        private
          def apply_scope(doc)
            doc[reflection.type_key_name] = doc.class.name
            super
          end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 4 rubygems

Version Path
mongo_mapper-unstable-2010.1.20 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.1.19 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
jmonteiro-mongo_mapper-0.1.7 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.1.18 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
jmonteiro-mongo_mapper-0.1.6 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
jmonteiro-mongo_mapper-0.1.5 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.1.17 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
jmonteiro-mongo_mapper-0.1.4 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
jmonteiro-mongo_mapper-0.1.2 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
jmonteiro-mongo_mapper-0.1.1 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
jmonteiro-mongo_mapper-0.1.0 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.1.12 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb