Sha256: c0a4b5326465a367ace8feeb6da14049962591ec233448952263afb74770270a

Contents?: true

Size: 177 Bytes

Versions: 14

Compression:

Stored size: 177 Bytes

Contents

# frozen_string_literal: true

module Pagination
  module PageSizeForHelper
    def pagination_page_size_for(set)
      set.instructions.dig(:paginate, :size)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
actionset-0.11.0 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.10.0 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.9.2 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.9.1 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.8.2 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.8.1 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.8.0 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.7.0 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.6.0 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.5.4 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.5.3 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.5.2 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.5.1 lib/action_set/helpers/pagination/page_size_for_helper.rb
actionset-0.5.0 lib/action_set/helpers/pagination/page_size_for_helper.rb