Sha256: e420f378dad6d6d693e7fe17cb427769818c5f8db8a5ebe90825a8c2a657ae21

Contents?: true

Size: 135 Bytes

Versions: 10

Compression:

Stored size: 135 Bytes

Contents

Mongoid::Criteria.delegate :inc, :to => :context
Mongoid::Finders.send :define_method, :inc do |*args|
  criteria.send :inc, *args
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mongoid_orderable-5.0.0 lib/mongoid_orderable/mongoid/criteria.rb
mongoid_orderable-4.1.1 lib/mongoid_orderable/mongoid/criteria.rb
mongoid_orderable-4.1.0 lib/mongoid_orderable/mongoid/criteria.rb
mongoid_orderable-4.0.0 lib/mongoid_orderable/mongoid/criteria.rb
mongoid_orderable-1.2.0 lib/mongoid_orderable/mongoid/criteria.rb
mongoid_orderable-1.1.0 lib/mongoid_orderable/mongoid/criteria.rb
mongoid_orderable-1.0.0 lib/mongoid_orderable/mongoid/criteria.rb
mongoid_orderable-0.9.1 lib/mongoid_orderable/mongoid/criteria.rb
mongoid_orderable-0.9.0 lib/mongoid_orderable/mongoid/criteria.rb
mongoid_orderable-0.0.1 lib/mongoid_orderable/mongoid/criteria.rb