Sha256: 061cd930c8e3064ba0904324e754bb1c4a3425acb6db8ba9ba4a66f29a2a2043

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

module MongoidOrderable #:nodoc:
  module Mongoid #:nodoc:
    module Contexts #:nodoc:
      module Enumerable #:nodoc:
        def inc attribute, value
          iterate do |doc|
            MongoidOrderable.inc doc, attribute, value
          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-5.0.0 lib/mongoid_orderable/mongoid/contexts/enumerable.rb
mongoid_orderable-4.1.1 lib/mongoid_orderable/mongoid/contexts/enumerable.rb
mongoid_orderable-4.1.0 lib/mongoid_orderable/mongoid/contexts/enumerable.rb
mongoid_orderable-4.0.0 lib/mongoid_orderable/mongoid/contexts/enumerable.rb