Sha256: 968862fa9552377a306f77f26ef14f7f42ea16658797443241120d26f5bdbf53
Contents?: true
Size: 396 Bytes
Versions: 25
Compression:
Stored size: 396 Bytes
Contents
module FriendlyId module Helpers # Calculate expected result size for find_some_with_friendly (taken from # active_record/base.rb) def expected_size(ids_and_names, options) #:nodoc:# size = options[:offset] ? ids_and_names.size - options[:offset] : ids_and_names.size size = options[:limit] if options[:limit] && size > options[:limit] size end end end
Version data entries
25 entries across 25 versions & 5 rubygems