diff --git a/lib/bootstrap_pagination/bootstrap_renderer.rb b/lib/bootstrap_pagination/bootstrap_renderer.rb index d578929..056da0e 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 Fixnum + when 0.class page_number(item) else send(item)