Sha256: 9abfabdd1a48ca13cf866c641cd0562439f61b85202207c536c5744ed2501dfd

Contents?: true

Size: 298 Bytes

Versions: 6

Compression:

Stored size: 298 Bytes

Contents

# encoding: UTF-8
module MarkMapper
  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

6 entries across 6 versions & 1 rubygems

Version Path
mark_mapper-0.0.6 lib/mark_mapper/plugins/associations/many_polymorphic_proxy.rb
mark_mapper-0.0.5 lib/mark_mapper/plugins/associations/many_polymorphic_proxy.rb
mark_mapper-0.0.4 lib/mark_mapper/plugins/associations/many_polymorphic_proxy.rb
mark_mapper-0.0.3 lib/mark_mapper/plugins/associations/many_polymorphic_proxy.rb
mark_mapper-0.0.2 lib/mark_mapper/plugins/associations/many_polymorphic_proxy.rb
mark_mapper-0.0.1 lib/mark_mapper/plugins/associations/many_polymorphic_proxy.rb