From 98ce8e791f173774816c1d8b947613230d3927a8 Mon Sep 17 00:00:00 2001 From: Domizio Demichelis Date: Sat, 1 Dec 2018 17:00:47 +0700 Subject: [PATCH] automatic ids based on hash must be strings --- lib/pagy/extras/bootstrap.rb | 4 ++-- lib/pagy/extras/bulma.rb | 4 ++-- lib/pagy/extras/foundation.rb | 4 ++-- lib/pagy/extras/items.rb | 2 +- lib/pagy/extras/materialize.rb | 4 ++-- lib/pagy/extras/plain.rb | 4 ++-- lib/pagy/extras/semantic.rb | 4 ++-- lib/pagy/extras/shared.rb | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/pagy/extras/bootstrap.rb b/lib/pagy/extras/bootstrap.rb index 3ab80c88f..c7bf0f212 100644 --- a/lib/pagy/extras/bootstrap.rb +++ b/lib/pagy/extras/bootstrap.rb @@ -26,7 +26,7 @@ def pagy_bootstrap_nav(pagy) # Compact pagination for bootstrap: it returns the html with the series of links to the pages # we use a numeric input tag to set the page and the Pagy.compact javascript to navigate - def pagy_bootstrap_compact_nav(pagy, id=caller(1,1)[0].hash) + def pagy_bootstrap_compact_nav(pagy, id=caller(1,1)[0].hash.to_s) html, link, p_prev, p_next, p_page, p_pages = +'', pagy_link_proc(pagy), pagy.prev, pagy.next, pagy.page, pagy.pages html << %(