Sha256: 9f670a85d8b4247757de6e058b272dd7c6554f6d7fc3da0684a39c0b412aee9f

Contents?: true

Size: 281 Bytes

Versions: 30

Compression:

Stored size: 281 Bytes

Contents

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

Version data entries

30 entries across 30 versions & 6 rubygems

Version Path
pwnash-mongo_mapper-0.7.5 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-0.7.6 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-0.7.5 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper_ign-0.7.4 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-0.7.4 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-0.7.3 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
numon-0.0.1 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-0.7.2 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-0.7.1 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.3.8 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.3.5 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.3.4 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.3.3 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-rails3-0.7.0.1 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.2.28 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.2.27 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.2.26 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.2.25 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.2.24 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.2.23 lib/mongo_mapper/plugins/associations/many_polymorphic_proxy.rb