Sha256: 775eee9e41a6deb19876f08f62f95ff54b98741b0efda176c75d2c9489ce6be3

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid_orderable-1.0.0 lib/mongoid_orderable/mongoid/contexts/enumerable.rb
mongoid_orderable-0.9.1 lib/mongoid_orderable/mongoid/contexts/enumerable.rb
mongoid_orderable-0.9.0 lib/mongoid_orderable/mongoid/contexts/enumerable.rb
mongoid_orderable-0.0.1 lib/mongoid_orderable/mongoid/contexts/enumerable.rb