rails_pagination 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,11 +46,11 @@ module RailsPagination
46
46
  end
47
47
 
48
48
  def page_path(page)
49
- @template.url_for(@template.request.query_parameters.merge(@parameter => page))
49
+ @template.request.path + '?' + @template.request.query_parameters.merge(@parameter => page).to_query
50
50
  end
51
51
 
52
52
  def page_url(page)
53
- @template.url_for(@template.request.query_parameters.merge(@parameter => page, :only_path => false))
53
+ @template.request.protocol + @template.request.host_with_port + page_path(page)
54
54
  end
55
55
 
56
56
  def current_page_path
@@ -1,7 +1,7 @@
1
1
  module RailsPagination
2
2
  class Railtie < Rails::Railtie
3
3
 
4
- config.pagination = ::ActiveSupport::OrderedOptions.new
4
+ config.pagination = ActiveSupport::OrderedOptions.new
5
5
  config.pagination.default_per_page = 30
6
6
  config.pagination.default_parameter = :p
7
7
  config.pagination.default_navigation = 5
@@ -1,5 +1,5 @@
1
1
  module RailsPagination
2
2
 
3
- VERSION = '2.0.5'
3
+ VERSION = '2.0.6'
4
4
 
5
5
  end