Sha256: 0cef99956593c27eccb9a12e7fe76b926fad09ee99ab4a812fefd1e3f93d5275

Contents?: true

Size: 182 Bytes

Versions: 4

Compression:

Stored size: 182 Bytes

Contents

# frozen_string_literal: true

module Pagination
  module RecordSizeForHelper
    def pagination_record_size_for(set)
      set.instructions.dig(:paginate, :count)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
actionset-0.11.0 lib/action_set/helpers/pagination/record_size_for_helper.rb
actionset-0.10.0 lib/action_set/helpers/pagination/record_size_for_helper.rb
actionset-0.9.2 lib/action_set/helpers/pagination/record_size_for_helper.rb
actionset-0.9.1 lib/action_set/helpers/pagination/record_size_for_helper.rb