/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.
This commit is contained in:
@@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
<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) %>
|
||||||
<%= tag.link rel: "prev", href: url_for(nav_params_for(@current_item.prev_page)) %>
|
<%= tag.link rel: "prev", href: url_for(nav_params_for(@current_item.prev_page)) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @current_item.try(:next_page) %>
|
<% if (@current_item.try(:next_page) rescue false) %>
|
||||||
<%= tag.link rel: "next", href: url_for(nav_params_for(@current_item.next_page)) %>
|
<%= tag.link rel: "next", href: url_for(nav_params_for(@current_item.next_page)) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user