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.
- data/lib/rails_pagination/pager.rb +2 -2
- data/lib/rails_pagination/railtie.rb +1 -1
- data/lib/rails_pagination/version.rb +1 -1
- data/test/dummy/log/test.log +9465 -0
- data/test/rails_pagination_test.rb +1 -1
- metadata +2 -2
@@ -46,11 +46,11 @@ module RailsPagination
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def page_path(page)
|
49
|
-
@template.
|
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.
|
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 =
|
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
|