From 405f1e5347aa590a49ae05a754c4b4c0cd71def4 Mon Sep 17 00:00:00 2001 From: Richard Luck Date: Thu, 28 Dec 2017 21:22:50 -0800 Subject: [PATCH] Patching as per PR on main project [See this](https://github.com/bootstrap-ruby/will_paginate-bootstrap/pull/51) --- lib/bootstrap_pagination/bootstrap_renderer.rb | 2 +- lib/bootstrap_pagination/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bootstrap_pagination/bootstrap_renderer.rb b/lib/bootstrap_pagination/bootstrap_renderer.rb index 54de60f..ff978ed 100644 --- a/lib/bootstrap_pagination/bootstrap_renderer.rb +++ b/lib/bootstrap_pagination/bootstrap_renderer.rb @@ -8,7 +8,7 @@ module BootstrapRenderer def to_html list_items = pagination.map do |item| case item - when Integer + when 0.class page_number(item) else send(item) diff --git a/lib/bootstrap_pagination/version.rb b/lib/bootstrap_pagination/version.rb index d72adc1..d044bd5 100644 --- a/lib/bootstrap_pagination/version.rb +++ b/lib/bootstrap_pagination/version.rb @@ -1,3 +1,3 @@ module BootstrapPagination - VERSION = "1.0.2" + VERSION = "1.0.3" end