Sha256: 4c06159d87b978c5d12fd591cf3e60d4c575fe4ef8d91bbd34cbf7d2e40c2c74

Contents?: true

Size: 257 Bytes

Versions: 51

Compression:

Stored size: 257 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

51 entries across 51 versions & 9 rubygems

Version Path
crnixon-mongomapper-0.3.4 lib/mongomapper/associations/many_polymorphic_proxy.rb
djsun-mongomapper-0.3.1.1 lib/mongomapper/associations/many_polymorphic_proxy.rb
djsun-mongomapper-0.3.1 lib/mongomapper/associations/many_polymorphic_proxy.rb
djsun-mongomapper-0.3.3 lib/mongomapper/associations/many_polymorphic_proxy.rb
djsun-mongomapper-0.3.5.1 lib/mongomapper/associations/many_polymorphic_proxy.rb
djsun-mongomapper-0.3.5.2 lib/mongomapper/associations/many_polymorphic_proxy.rb
djsun-mongomapper-0.3.5.4 lib/mongomapper/associations/many_polymorphic_proxy.rb
djsun-mongomapper-0.3.5.5 lib/mongomapper/associations/many_polymorphic_proxy.rb
djsun-mongomapper-0.3.5 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.10 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.11 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.12 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.13 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.14 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.15 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.3 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.4.1 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.4 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.5 lib/mongomapper/associations/many_polymorphic_proxy.rb
hashrocket-mongomapper-0.3.6 lib/mongomapper/associations/many_polymorphic_proxy.rb