lib/action_set/helpers/paginator.rb in actionset-0.3.2 vs lib/action_set/helpers/paginator.rb in actionset-0.3.3
- old
+ new
@@ -48,14 +48,14 @@
(left_window | current_page | right_window).sort.reject { |x| (x < 1) || (x > @info[:total_pages]) }
end
def page_link_url(page_number)
request.query_parameters
- .merge(controller: controller.controller_path,
- action: controller.action_name,
- paginate: {
- page: page_number
- })
+ .deep_merge(controller: controller.controller_path,
+ action: controller.action_name,
+ paginate: {
+ page: page_number
+ })
end
def link_to_prev_gap
return unless @info[:current_page] > 1
return unless @info[:current_page] <= @info[:total_pages]