Sha256: 6501528be1a71ef1e1c1483394beced42207647d13f7f19cd22dc716ce13877e

Contents?: true

Size: 183 Bytes

Versions: 14

Compression:

Stored size: 183 Bytes

Contents

# frozen_string_literal: true

module Pagination
  module CurrentPageForHelper
    def pagination_current_page_for(set)
      set.instructions.dig(:paginate, :page)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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