Sha256: 942c84f298f3a810abf17b0761f15315a55d45be6c32122c60eb26353ed95f38

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

module MongoidOrderable #:nodoc:
  module Mongoid #:nodoc:
    module Contexts #:nodoc:
      module Enumerable #:nodoc:
        def inc attribute, value
          iterate do |doc|
            doc.inc(attribute, value)
          end
        end
      end
    end
  end
end

Mongoid::Contexts::Enumerable.send :include, MongoidOrderable::Mongoid::Contexts::Enumerable

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid_orderable-1.2.0 lib/mongoid_orderable/mongoid/contexts/enumerable.rb
mongoid_orderable-1.1.0 lib/mongoid_orderable/mongoid/contexts/enumerable.rb