Commit 6b3c541a authored by evazion's avatar evazion

/ip_addresses: temp fix for exception when using group_by param.

Calling next_page here raises an exception when calculating the page
count because it can't handle SQL containing a GROUP BY clause. Swallow
the exception as a temp fix.
parent 96b565f6
......@@ -5,11 +5,11 @@
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<% if @current_item.try(:prev_page) %>
<% if (@current_item.try(:prev_page) rescue false) %>
<%= rel: "prev", href: url_for(nav_params_for(@current_item.prev_page)) %>
<% end %>
<% if @current_item.try(:next_page) %>
<% if (@current_item.try(:next_page) rescue false) %>
<%= rel: "next", href: url_for(nav_params_for(@current_item.next_page)) %>
<% end %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment