Sha256: 85e9b44c7dc880ef7eb013bbb00b6f64b9ef9024e9f0fd59665c2cbde22f7a56

Contents?: true

Size: 239 Bytes

Versions: 19

Compression:

Stored size: 239 Bytes

Contents

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

Version data entries

19 entries across 19 versions & 4 rubygems

Version Path
mrkurt-mongo_mapper-0.6.11 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.1.6 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.1.5 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2010.1.4 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
tpitale-mongo_mapper-0.6.10 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mrkurt-mongo_mapper-0.6.10 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.6.10 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mrkurt-mongo_mapper-0.6.9 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.6.9 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mrkurt-mongo_mapper-0.6.8 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
tpitale-mongo_mapper-0.6.9 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.12.30 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.12.29 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.12.23 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.12.22 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.12.16 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.6.8 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-unstable-2009.12.14 lib/mongo_mapper/associations/many_polymorphic_proxy.rb
mongo_mapper-0.6.7 lib/mongo_mapper/associations/many_polymorphic_proxy.rb