Sha256: 0460a83ba6ef573122c47c7c8ee82d98f18ebfd5f0919c78f307ea1658fbcffd
Contents?: true
Size: 395 Bytes
Versions: 11
Compression:
Stored size: 395 Bytes
Contents
module Kaminari module MongoidCriteriaMethods def limit_value #:nodoc: options[:limit] end def offset_value #:nodoc: options[:skip] end def total_count #:nodoc: embedded? ? unpage.count : count end private def unpage clone.tap do |crit| crit.options.delete :limit crit.options.delete :skip end end end end
Version data entries
11 entries across 11 versions & 3 rubygems