Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

paginate_by_sql does not initialize pagenum #187

Closed
robvandijk opened this Issue · 0 comments

2 participants

@robvandijk

The paginate/page methods initialize pagenum if it is nil via the following:

        pagenum = ::WillPaginate::PageNumber(num.nil? ? 1 : num)

The paginate_by_sql leaves the page number untouched, leading to an error when trying to convert nil to an integer in PageNumber - initialize:

      value = Integer(value)
@mislav mislav closed this in 9bd5aec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.