Sha256: a4ac15e2680366ad6bf2cfd0abc0095a8862fdff6a3054f3fb9ae9d97c69b00d

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

module MongoidOrderable #:nodoc:
  module Mongoid #:nodoc:
    module Contextual #:nodoc:
      module Memory #:nodoc:
        def inc attribute, value
          each do |document|
            document.inc(attribute, value)
          end
        end
      end
    end
  end
end

Mongoid::Contextual::Memory.send :include, MongoidOrderable::Mongoid::Contextual::Memory

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid_orderable-1.2.0 lib/mongoid_orderable/mongoid/contextual/memory.rb
mongoid_orderable-1.1.0 lib/mongoid_orderable/mongoid/contextual/memory.rb