mislav/will_paginate — pull request #372 by edariedl (2014-04-11 10:25:28+00:00)
Title: Fix count method to work with select statement.

Count method raises `ActiveRecord::StatementInvalid` if `select` method is used in Rails 4.1. This commit fixes will paginate and if work if `select` method is used.