Fix Rails 4 deprecation warning.
paginate creates a Rails 4 deprecation warning that needs to be fixed.