Ruby 2.4 compatibility fix
This commit is contained in:
parent
ddc7e825fb
commit
3fb8b3ab17
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ class FoundationPaginationRenderer < WillPaginate::ActionView::LinkRenderer
|
||||||
def to_html
|
def to_html
|
||||||
list_items = pagination.map do |item|
|
list_items = pagination.map do |item|
|
||||||
case item
|
case item
|
||||||
when Fixnum
|
when Integer # ruby 2.4
|
||||||
page_number(item)
|
page_number(item)
|
||||||
else
|
else
|
||||||
send(item)
|
send(item)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue