Sha256: b58cc2949a9e84adf6593eb00ec724f5b5d372bb76bf45b30177428b6632ee07

Contents?: true

Size: 566 Bytes

Versions: 21

Compression:

Stored size: 566 Bytes

Contents

# encoding: UTF-8
# It is here only until this pull request is pulled: https://github.com/amatsuda/kaminari/pull/267
module Kaminari #:nodoc:
  module Helpers #:nodoc:
    class Tag #:nodoc:
      def page_url_for(page) #:nodoc:
        current_page_params_as_query_string = @param_name.to_s + '=' + (page <= 1 ? nil : page).to_s
        current_page_params_as_hash = Rack::Utils.parse_nested_query(current_page_params_as_query_string)
        @template.url_for Wice::WgHash.rec_merge(@params, current_page_params_as_hash).symbolize_keys
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
wice_grid-3.4.14 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.13 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.12 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.11 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.10 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.9 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.8 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.7 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.6 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.5 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.4 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.3 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.2 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.1 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.4.0 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.3.1 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.3.0 lib/wice/kaminari_monkey_patching.rb
wice_grid-3.2.1 lib/kaminari_monkey_patching.rb
wice_grid-3.2.1.pre3 lib/kaminari_monkey_patching.rb
wice_grid-3.2.1.pre2 lib/kaminari_monkey_patching.rb